What it does
A Cursor rules file for building APIs with Python and FastAPI. It favors a functional style, type hints on every function and Pydantic models for input validation. It also sets out error handling with early returns and a clear file structure for routes, utilities and schemas.
Use cases
- 01Add a new route with Pydantic validation
- 02Refactor nested conditionals into early returns
- 03Organize routers, schemas and utilities