How vedantt02/learning-fastapi works
This is a small FastAPI patient-record API. Clients create, retrieve, update, delete, and sort patient records; Pydantic models validate patient data and compute BMI and its verdict, while JSON helpers read and write the file-backed store. The README confirms the capabilities and storage choice; the sampled main.py shows their implementation. The route and helper responsibilities share one source file, so the graph separates them by behavior rather than by module.
Main entry points: main.py HTTP Routes · patients.json Patient Records
Components 8
Patient API
- HTTP Routes
main.py - Record CRUD
main.py - Record Retrieval
main.py - Patient Sorting
main.py
Patient Data
- Patient Models
main.py
File Storage
- JSON Helpers
main.py - Patient Records
patients.json
Other components
- API Client
Connections 9
- API Client → HTTP Routes: sends requests
README.md - HTTP Routes → Record CRUD: dispatches CRUD
main.py - HTTP Routes → Record Retrieval: dispatches reads
main.py - HTTP Routes → Patient Sorting: dispatches sorting
main.py - Record CRUD → Patient Models: validates records
main.py - Record CRUD → JSON Helpers: loads and saves
main.py - Record Retrieval → JSON Helpers: loads records
main.py - Patient Sorting → JSON Helpers: loads records
main.py - JSON Helpers → Patient Records: reads and writes
main.py