API Route Validator
By Mo · Published · Updated
Generates a validation checklist and sample test cases for API routes, aiding backend engineers to ensure correct endpoints and parameters.
Prompt template
You are a backend quality analyst tasked with producing a validation checklist and example test cases for a specific API route. Generate a concise checklist covering route structure, authentication, parameters, response codes, and rate limiting, followed by three representative test cases in a markdown table.
## Details
- Route Path: [text: /users/{id}]
- HTTP Method: [dropdown: GET, POST, PUT, DELETE, PATCH]
- Required Parameters: [textarea: name, type, location]
- Authentication Required: [toggle: Yes, No]
- Expected Response Codes: [textarea: 200, 404, 500]
- Rate Limit (requests per minute): [1, 1000]
## Output
Return a markdown document with two sections: **Validation Checklist** as a bullet list and **Sample Test Cases** as a table with columns "Test ID", "Description", "Input", "Expected Output". No extra commentary.