How jotapekk/todo-list-api works
This is a small FastAPI task-list API. Clients can list, retrieve, create, update, and delete tasks; task records live in a process-local list, so the code shows no durable database. The shared lookup helper supports retrieval, update, and deletion, while the Pydantic model defines and validates task fields. The map reflects the routes and state operations visible in main.py; no separate persistence or service layer is present.
Main entry points: main.py Task lookup
Components 9
Task API
- List tasks
main.py - Get task
main.py - Create task
main.py - Update task
main.py - Delete task
main.py - Task lookup
main.py - Task schema
main.py - In-memory tasks
main.py
Other components
- API client
Connections 14
- API client → List tasks: requests
main.py - API client → Get task: requests
main.py - API client → Create task: requests
main.py - API client → Update task: requests
main.py - API client → Delete task: requests
main.py - List tasks → In-memory tasks: reads
main.py - Get task → Task lookup: calls
main.py - Create task → Task schema: accepts
main.py - Create task → In-memory tasks: appends
main.py - Update task → Task schema: accepts
main.py - Update task → Task lookup: calls
main.py - Delete task → Task lookup: calls
main.py - Delete task → In-memory tasks: removes
main.py - Task lookup → In-memory tasks: searches
main.py