api-endpoint-implementation - Implement consistent FastAPI REST endpoints
Defines patterns for FastAPI REST routes, Pydantic request and response models, error handling, health checks, and integration tests.
Tags
Updated: 2026-10-02Typical Inputs
Typical Outputs
What this skill does
- Define FastAPI routes
- Create Pydantic models
- Validate request data
- Map errors to statuses
- Implement health checks
- Implement readiness checks
- Write integration tests
Inputs
- Endpoint specifications
- Business logic
- Project conventions
- Service dependencies
Outputs
- FastAPI endpoint code
- Pydantic models
- Standard error responses
- Health and readiness endpoints
- Integration tests
Requirements
- FastAPI
- Pydantic
- Python environment
- pytest
- FastAPI TestClient
