How farukshihab/taskflowbackend works
This is a Django REST API for account access, task management, and medical-study image annotation. The main authenticated workflow is to create a study, upload images, and create or edit polygon annotations; task endpoints provide a separate create, update, move, and history workflow. The graph follows the sampled views and root routing. App URL details and several implementations were not sampled, so their internal links are limited to documented routing and visible calls.
Main entry points: tasks/views.py Task endpoints · annotations/views.py Study endpoints · urls.py Root API routes · db.sqlite3 SQLite database
Components 18
Accounts
- Account routes
apps/authentication/urls.py - Account endpoints
apps/authentication/views.py - Account validation
apps/authentication/serializers.py - User model
apps/authentication/models.py
Task management
- Task routes
apps/tasks/urls.py - Task endpoints
apps/tasks/views.py - Task serialization
apps/tasks/serializers.py - Tasks and history
apps/tasks/models.py - History helper
apps/tasks/utils.py
Study annotation
- Study routes
apps/annotations/urls.py - Study endpoints
apps/annotations/views.py - Study serialization
apps/annotations/serializers.py - Studies and polygons
apps/annotations/models.py
API runtime and storage
- Root API routes
config/urls.py - Runtime settings
config/settings.py - SQLite database
db.sqlite3 - Uploaded images
media
Other components
- API client
Connections 22
- API client → Root API routes: sends requests
- Root API routes → Account routes: routes accounts
- Root API routes → Task routes: routes tasks
- Root API routes → Study routes: routes studies
- Account routes → Account endpoints: dispatches
- Task routes → Task endpoints: dispatches
- Study routes → Study endpoints: dispatches
- Account endpoints → Account validation: validates
- Account validation → User model: creates or authenticates
- Task endpoints → Task serialization: serializes
- Task endpoints → Tasks and history: queries and saves
- Task endpoints → History helper: records history
- History helper → Tasks and history: writes history
- Study endpoints → Study serialization: serializes
- Study endpoints → Studies and polygons: queries and saves
- Study endpoints → Uploaded images: stores uploaded images
- User model → SQLite database: persists
- Tasks and history → SQLite database: persists
- Studies and polygons → SQLite database: persists
- Runtime settings → SQLite database: configures
- Runtime settings → Uploaded images: configures storage
- Runtime settings → Account endpoints: enables JWT authentication