Endpoints
Define mock responses for your API endpoints.
Endpoint Properties
- Method - GET, POST, PUT, PATCH, or DELETE
- Path - URL path (e.g., /users, /orders/:id)
- Status - HTTP status code (default: 200)
- Headers - Response headers (JSON object)
- Body - Response body (JSON or template)
- Delay - Simulated latency in milliseconds
- Fail Rate - Percentage of requests that return 500
Path Parameters
Use colon syntax for dynamic segments. Parameters are extracted automatically.
Path: /users/:id
Request: /users/123
Result: params.id = "123"
Use in response body with :param syntax:
{
"id": ":id",
"message": "User :id retrieved"
}Response Headers
Add custom headers as JSON:
{
"X-Custom-Header": "value",
"Cache-Control": "no-cache"
}Response Body
Static JSON or dynamic template:
{
"id": 123,
"name": "Product Name",
"price": 29.99
}Need help? Contact support