# fastapi-backend > Senior FastAPI backend development. Use for creating API endpoints, implementing business logic, handling request validation, and orchestrating the backend service in the Todo app. - Author: Syed Ali Hashmi - Repository: alihashmi2288/Hackathon-02-Evolution-of-Todo-App - Version: 20260207160824 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/alihashmi2288/Hackathon-02-Evolution-of-Todo-App - Web: https://mule.run/skillshub/@@alihashmi2288/Hackathon-02-Evolution-of-Todo-App~fastapi-backend:20260207160824 --- --- name: fastapi-backend description: Senior FastAPI backend development. Use for creating API endpoints, implementing business logic, handling request validation, and orchestrating the backend service in the Todo app. --- # FastAPI Backend Skill ## Stack - Python 3.10+ - FastAPI - Pydantic v2 - SQLModel ## Core Patterns - **Routes**: Organize by feature in `backend/routes/`. - **Dependency Injection**: Use `Depends()` for database sessions and auth. - **Models**: Use SQLModel for unified ORM and Pydantic schemas. - **Error Handling**: Use `fastapi.HTTPException` with clear status codes and messages. ## Guidelines - All routes should be prefixed with `/api`. - Use async/await for all IO-bound operations (DB, external APIs). - Follow PEP 8 style guide. - Ensure all endpoints have proper Pydantic `response_model` definitions.