Spaces:
Runtime error
Runtime error
File size: 907 Bytes
adb6862 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ---
title: Evolution Todo API
emoji: ✅
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
app_port: 7860
---
# Evolution Todo API
RESTful API backend for the Evolution Todo application.
## Features
- User Authentication (JWT)
- Task CRUD Operations
- PostgreSQL Database (Neon)
- FastAPI Framework
## API Endpoints
- `GET /` - Health check
- `POST /auth/signup` - User registration
- `POST /auth/signin` - User login
- `GET /users/{user_id}/tasks` - Get user tasks
- `POST /users/{user_id}/tasks` - Create task
- `PUT /users/{user_id}/tasks/{task_id}` - Update task
- `DELETE /users/{user_id}/tasks/{task_id}` - Delete task
## Environment Variables
Set these in Hugging Face Space secrets:
- `DATABASE_URL` - Neon PostgreSQL connection string
- `JWT_SECRET` - Secret key for JWT tokens
- `CORS_ORIGINS` - Allowed origins (comma-separated)
|