How bakkali-mohamed12/task_api works
Task API is a small FastAPI service: clients call its welcome, health, and task endpoints; task operations use Pydantic models and a process-local list. The README documents the endpoints and in-memory lifetime, while main.py shows the handlers and state mutations. The graph omits deployment and test tooling; it reflects only the runtime API. All runtime behavior is implemented in main.py.
Main entry points: main.py Create task
Components 8
HTTP API
- Welcome endpoint
main.py - Health endpoint
main.py - List tasks
main.py - Create task
main.py - Complete task
main.py
Task State
- Task models
main.py - In-memory tasks
main.py
Other components
- API client
Connections 10
- API client → Welcome endpoint: GET /
README.md - API client → Health endpoint: GET /health
README.md - API client → List tasks: GET /tasks
README.md - API client → Create task: POST /tasks
README.md - API client → Complete task: PATCH complete
README.md - List tasks → In-memory tasks: reads
main.py - Create task → Task models: constructs
main.py - Create task → In-memory tasks: appends
main.py - Complete task → In-memory tasks: searches and updates
main.py - Complete task → Task models: copies task
main.py