--- title: Todo API Backend emoji: 🚀 colorFrom: indigo colorTo: blue sdk: docker app_port: 7860 pinned: false --- # Todo API Backend FastAPI backend for the Todo Full-Stack Web Application. ## Endpoints - `GET /` - API info - `GET /health` - Health check - `GET /api/tasks` - List tasks - `POST /api/tasks` - Create task - `PUT /api/tasks/{id}` - Update task - `DELETE /api/tasks/{id}` - Delete task ## Environment Variables Set these in your HF Space secrets: - `DATABASE_URL` - PostgreSQL connection string (required)