Test Backend API
{
"name": "Test Backend API",
"version": "1",
"description": "A test backend API for API Gateway integration testing",
"documentation": "/docs",
"endpoints": {
"health": {
"GET /health": "Health check endpoint (no auth required)"
},
"users": {
"GET /users": "List all users (paginated)",
"GET /users/:id": "Get single user",
"POST /users": "Create user",
"PUT /users/:id": "Update user",
"DELETE /users/:id": "Delete user"
},
"products": {
"GET /products": "List products (with category filter)",
"GET /products/:id": "Get single product",
"POST /products": "Create product",
"PUT /products/:id": "Update product",
"DELETE /products/:id": "Delete product"
},
"orders": {
"GET /orders": "List orders (with status/userId filter)",
"GET /orders/:id": "Get order details",
"POST /orders": "Create order",
"PUT /orders/:id": "Update order",
"DELETE /orders/:id": "Delete order"
},
"analytics": {
"GET /analytics/summary": "Get analytics summary",
"GET /analytics/events": "Get analytics events"
},
"testing": {
"GET /slow?delay=ms": "Slow response endpoint (100ms-30s)",
"GET /test/error-400": "Test 400 error",
"GET /test/error-401": "Test 401 error",
"GET /test/error-403": "Test 403 error",
"GET /test/error-404": "Test 404 error",
"GET /test/error-500": "Test 500 error",
"GET /test/random-error": "Random success/error (50%)"
}
},
"authentication": {
"type": "Bearer Token",
"header": "Authorization: Bearer <token>",
"note": "All endpoints except /health require authentication via API Gateway"
},
"seedData": {
"users": 10,
"products": 20,
"orders": 5,
"analyticsEvents": 50
}
}