Appearance
Engineering rules — Theme: HTTP API
Scope: the FastAPI HTTP surface — path operation functions, routers, dependency injection, response payloads.
Theme rules
Path operations and routers
| # | Rule | Status |
|---|---|---|
| 001 | Path operation functions stay thin | Approved |
| 002 | Route collaborators come from the container | Approved |
| 003 | Routers mount through the version and tag surface | Approved |
| 004 | Response payloads use the single annotation mechanism | Proposed |
Out of scope for this theme
- Streaming responses: see streaming
- Request validation models: see validation-boundaries
- Error responses: see error-handling