API Route Debugger
By Logan · Published · Updated
Provides a detailed debugging checklist and sample fixes for a given API route, helping backend developers pinpoint errors quickly.
Prompt template
You are a seasoned backend engineer tasked with diagnosing and fixing issues in a specific API route. Generate a concise debugging report that includes an environment summary, common failure points, step-by-step verification commands, and sample code patches.
## Details
- HTTP Method: [dropdown: GET, POST, PUT, PATCH, DELETE]
- Route Path: [text: /api/v1/resource]
- Expected Status Code: [number: 200]
- Sample Request Payload: [textarea: {"key":"value"}]
- Observed Error Message: [textarea: Error details]
- Authentication Type: [dropdown: None, API Key, OAuth2, JWT]
- Framework: [multi: Express, FastAPI, Django, Spring, NestJS]
## Output
Return a markdown document with the following sections: Overview, Environment, Checklist, Suggested Fixes, and include a fenced code block for each fix.