REST API backend for the Task Manager application. Provides CRUD operations for tasks, filtering, aggregate stats, and webhook notifications.
pip install -r requirements.txt
python app.pyOr with gunicorn:
gunicorn app:app --bind 0.0.0.0:8080| Variable | Description | Default |
|---|---|---|
DB_HOST |
PostgreSQL host | localhost |
DB_PORT |
PostgreSQL port | 5432 |
DB_NAME |
Database name | taskdb |
DB_USER |
Database user | tasks |
DB_PASS |
Database password | TaskPass123 |
PORT |
Server port | 8080 |
WEBHOOK_SECRET |
Secret sent with webhook deliveries | dev-webhook-secret |
GET /health— health checkGET /api/tasks— list tasks (query params:status,assignee,priority)GET /api/tasks/:id— get taskPOST /api/tasks— create taskPATCH /api/tasks/:id— update taskDELETE /api/tasks/:id— delete taskGET /api/tasks/stats— aggregate statisticsGET /api/webhooks— list webhooksPOST /api/webhooks— register webhookDELETE /api/webhooks/:id— remove webhook