94aa88c154
- Add Sessions tab to navigation between Dashboard and Projects - Show active session count badge in navigation - Create SessionsPage with: - Last session section with resume button - Active sessions grid with open/stop actions - Recent sessions list - Create session form with project/repo/tool selectors - Add last_session_id to user config - Update UserConfig schemas (backend and frontend) - Add comprehensive CSS for sessions page Quality gates: typecheck ✓, lint ✓, build ✓
1.7 KiB
1.7 KiB
API Documentation
Problem
The API lacks comprehensive documentation:
- No auto-generated OpenAPI/Swagger UI
- Health endpoint is minimal (only checks database)
- Missing endpoint documentation and docstrings
- No API README for developer onboarding
- No Architecture Decision Records (ADRs)
Solution
Provide comprehensive API documentation:
- Auto-generated OpenAPI docs - FastAPI native
/docsand/redocendpoints - Enhanced health checks -
/healthwith full system status,/health/dbfor database - Endpoint documentation - Proper docstrings, Pydantic models, response codes
- API README - Developer onboarding guide
- Architecture Decision Records - Document key architectural choices
Key Features
OpenAPI Documentation
- Interactive Swagger UI at
/docs - ReDoc at
/redoc - All endpoints with schemas and examples
- Authentication documented
Health Monitoring
/health- Overall system health (database, disk, uptime)/health/db- Database-specific health check- JSON responses with status indicators
Developer Documentation
apps/api/README.md- Setup, env vars, testing- ADRs in
docs/architecture/decisions/ - Inline code documentation
Benefits
- Developer onboarding - New devs can understand the API quickly
- API discoverability - Interactive docs for testing endpoints
- Health monitoring - Operations can monitor system health
- Knowledge preservation - ADRs capture why decisions were made
Success Criteria
/docsloads Swagger UI with all endpoints/healthreturns comprehensive health data/health/dbreturns database status- All endpoints have docstrings
- API README exists with setup instructions
- At least one ADR exists