How angel-ncf/apitask works
This is a small FastAPI task-management API backed by MongoDB. A client submits task requests to the routes in Api.py; those routes validate task data, perform create/read/update/delete or list operations on the local.tasks collection, and convert stored documents to response dictionaries. BD.py configures the MongoDB client, while the model and schema modules define the task contract and document conversion. The README’s endpoint table is illustrative and differs from the implemented routes; no main.py appears in the supplied tree.
Main entry points: Api.py Task routes · BD.py Mongo client · models.py Task models · schema.py Document conversion
Components 7
Task API
- Task routes
Api.py
Task contracts
- Task models
DataBase/models/models.py - Document conversion
DataBase/schemas/schema.py
MongoDB persistence
- Mongo client
DataBase/BD.py - Tasks collection
Api.py
Other components
- API client
- MongoDB service
Connections 6
- API client → Task routes: calls routes
Api.py - Task routes → Task models: validates tasks
Api.py - Task routes → Tasks collection: reads and writes
Api.py - Task routes → Document conversion: converts documents
Api.py - Task routes → Mongo client: imports client
Api.py - Mongo client → MongoDB service: connects to
DataBase/BD.py