What problem does it solve?
This Skill provides a structured approach to designing and implementing RESTful APIs using FastAPI, addressing common challenges in routing, data modeling, and error handling.
Core Features & Use Cases
- FastAPI Project Structure: Outlines a maintainable directory layout for API projects.
- Request/Response Models: Employs Pydantic for robust input validation and clear output serialization.
- Error Handling: Implements a strategy for mapping domain exceptions to appropriate HTTP responses.
- Dependency Injection: Demonstrates effective use of FastAPI's dependency system for managing resources.
- Use Case: When starting a new microservice that needs to expose data via a REST API, use this Skill to set up the foundational structure, including endpoints for common CRUD operations and proper error handling.
Quick Start
Use the api-design skill to create a new FastAPI project with standard routing and response models.