fastapi-dev
Installation
SKILL.md
FastAPI Development Standards
This skill guides development of FastAPI endpoints for the E-Signature Platform API.
Endpoint Implementation Checklist
- Pydantic Models: Always define request/response schemas in
app/schemas/ - Error Handling: Use error codes from esig-design.md Error Code Catalog
- Authentication: Use
get_current_userdependency for protected routes - Validation: Implement constraints from esig-design.md (e.g., name 1-255 chars)
- Idempotency: Create endpoints accept
Idempotency-Keyheader - Tests: Write success, validation error, and auth error test cases
Error Response Format
All errors must follow the standard format from esig-design.md:
from fastapi import HTTPException