Owner: Jodha (FastAPI Backend Expert)
Duration: 2 days (depends on PHASE1-A-1.1 models)
Status: Ready (after Day 2 of database work)
Subtasks
Deliverables
Create FastAPI app with all 12 REST endpoints:
Success Criteria
- ✅ All endpoints return correct HTTP status codes
- ✅ Request/response types validated with Pydantic
- ✅ All database calls use async/await correctly
- ✅ MyPy strict type checking passes
- ✅ 70%+ test coverage
- ✅ All tests pass
References
- PHASE1_TASKS.md (Agent B)
- API_ARCHITECTURE.md (REST contract)
- Depends on: PHASE1-A-1 (models)
- Blocks: PHASE1-C-1.6 (Noor needs complete API for security review)
Owner: Jodha (FastAPI Backend Expert)
Duration: 2 days (depends on PHASE1-A-1.1 models)
Status: Ready (after Day 2 of database work)
Subtasks
Deliverables
Create FastAPI app with all 12 REST endpoints:
health.py: GET /health
webhook.py: POST /webhook
practice.py: GET /practice, POST /answer, POST /hint
student.py: GET /profile, PATCH /profile
streak.py: GET /streak
admin.py: GET /stats, GET /students, GET /cost
FastAPI app initialization with environment config
Pydantic request/response schemas
Database session dependency injection
Error handling middleware
Unit tests with 70%+ coverage
Success Criteria
References