Files
hapi/.scratch/mvp-issues/03-fastapi-application-foundation.md
T
2026-11-17 14:39:40 -05:00

16 lines
800 B
Markdown

# 03: FastAPI Application Foundation
**What to build:** Layered FastAPI app structure (`models/`, `routers/`, `schemas/`, `services/`, `db/`) with JWT auth middleware and rate limiting. Includes `/health` endpoint with DB status check.
**Blocked by:** 02 (Database Schema & Migrations)
**Status:** ready-for-agent
- [ ] Layered FastAPI app structure created (`models/`, `routers/`, `schemas/`, `services/`, `db/`)
- [ ] JWT authentication middleware implemented with token validation
- [ ] Rate limiting middleware configured (per-token limits)
- [ ] `/health` endpoint returns API status and DB connection status
- [ ] `/health/ready` and `/health/live` endpoints implemented
- [ ] OpenAPI docs generated and accessible at `/docs`
- [ ] FastAPI app tested with test client against test database