API Mocking

How to Mock a REST API in Minutes

Learn to create REST mock endpoints with GET, POST, PUT and DELETE without writing any server code. Perfect for frontend, testing and prototypes.

What is an API mock?

An API mock is a simulated server that mimics the behavior of a real API without needing a database, backend logic or infrastructure. You define expected responses and the server returns them automatically — perfect for parallel frontend and backend development.

With httpdrop you create a REST API mock in under 2 minutes, with support for all HTTP methods, custom bodies, status codes and configurable delays.

Creating your first REST mock

Access the dashboard, create a new endpoint and add your Mock Rules. Each rule defines a method, path and response.

💡
Tip: Use the Auto CRUD feature to automatically generate all 5 REST endpoints (GET list, GET by id, POST, PUT, DELETE) from a single path — no manual configuration needed.

Example: Mock /products

# GET /products — list all products
curl https://httpdrop.com/mock/YOUR_ENDPOINT_ID/products

# Response:
[
  { "id": 1, "name": "Pro Laptop", "price": 1299.90, "stock": 12 },
  { "id": 2, "name": "Gaming Mouse", "price": 79.90, "stock": 45 }
]
# POST /products — create new product
curl -X POST https://httpdrop.com/mock/YOUR_ENDPOINT_ID/products   -H "Content-Type: application/json"   -d '{"name":"Mechanical Keyboard","price":149.90}'

# Response:
{ "id": 3, "name": "Mechanical Keyboard", "price": 149.90, "createdAt": "2026-05-31" }
🚀
Next step: Combine API mocking with Auto CRUD for simulated database operations with persistence between requests — no code required.
Ready to implement? Check the full technical documentation with API reference, code examples and detailed parameters.
View docs →