How kanvad/fastapi_basic works
This is a small FastAPI task API. A client sends HTTP requests to the application, which mounts task routes for API-key-protected listing, filtering, lookup, creation, update, and deletion. The routes use Pydantic models for request and response shapes and operate on a process-local in-memory task list. The graph reflects the sampled source; no README was provided.
Main entry points: tasks.py Task routes · main.py FastAPI app · schemas.py Task schemas · data.py In-memory tasks
Components 5
API runtime
- FastAPI app
app/main.py - Task routes
app/routers/tasks.py
Data contracts
- Task schemas
app/schemas.py
Task state
- In-memory tasks
app/data.py
Other components
- API client
Connections 4
- API client → FastAPI app: sends HTTP
- FastAPI app → Task routes: mounts routes
- Task routes → Task schemas: declares models
- Task routes → In-memory tasks: reads and mutates