Fast & Lightweight REST API

Modern REST APIBuilt with Hono

A high-performance REST API built with Hono.js, featuring full CRUD operations for Products, Users, and Posts. Simple, fast, and developer-friendly.

API Features

Everything you need for modern web development

Products Management

Complete CRUD operations for product catalog with pricing and descriptions.

User Management

Handle user profiles with email, age, and personal information securely.

Content Posts

Create and manage blog posts or articles with author attribution.

High Performance

Built with Hono.js for ultra-fast response times and minimal overhead.

In-Memory Storage

Fast in-memory database for development and testing purposes.

Type Safe

Full TypeScript support with proper type definitions and validation.

API Endpoints

Complete reference for all available endpoints

Base URL
http://localhost:8787 or https://dummyapi-1xsj.onrender.com
GET/products
Retrieve all products
[
  {
    "id": 1,
    "name": "Laptop",
    "price": 999.99,
    "description": "High-performance laptop"
  },
  {
    "id": 2,
    "name": "Mouse",
    "price": 29.99,
    "description": "Wireless mouse"
  }
]
GET/products/:id
Retrieve a specific product by ID
{
  "id": 1,
  "name": "Laptop",
  "price": 999.99,
  "description": "High-performance laptop"
}
POST/products
Create a new product
{
  "id": 3,
  "name": "Keyboard",
  "price": 79.99,
  "description": "Mechanical keyboard"
}
PUT/products/:id
Update an existing product
{
  "id": 1,
  "name": "Gaming Laptop",
  "price": 1299.99,
  "description": "High-end gaming laptop"
}
DELETE/products/:id
Delete a product
{
  "id": 1,
  "name": "Laptop",
  "price": 999.99,
  "description": "High-performance laptop"
}

Getting Started

Quick start guide to using the API

1Start the Server

Clone the repository and start the development server:

npm install
npm run dev

# Server will start on http://localhost:8787
2Make Your First Request

Test the API with a simple GET request:

curl http://localhost:8787/products

# Or using fetch in JavaScript
fetch('http://localhost:8787/products')
  .then(response => response.json())
  .then(data => console.log(data));
3Create New Resources

Add new data using POST requests:

fetch('http://localhost:8787/products', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'New Product',
    price: 49.99,
    description: 'A great new product'
  })
})
.then(response => response.json())
.then(data => console.log(data));