fastapi-router-py capability coverage
SDK/package: fastapi
This reference captures additional non-hero capabilities and API breadth so the main SKILL.md can stay focused on copy/paste hero flows.
Hero scenarios covered in SKILL.md
Quick StartAuthentication PatternsResponse ModelsHTTP Status Codes
Important non-hero scenarios to include when needed
Integration StepsBest Practices
API breadth checklist
- Verify dependency lifetimes (
Dependswithyield) for resources like DB connections and HTTP clients. - Confirm request/response validation uses Pydantic models with appropriate field constraints.
- Include proper error responses with
HTTPExceptionand correct status codes. - Avoid blocking I/O in
async defendpoints; userun_in_executoror a thread-pool for sync calls. - Validate middleware, background tasks, and lifespan event patterns for production paths.