A simple CRUD Todo API built with FastAPI, SQLAlchemy and SQLite.
python -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txtuvicorn main:app --reloadAPI docs: http://localhost:8000/docs
pytest --cov=. --cov-report=htmldocker build -t todo-api .
docker run -p 8000:8000 todo-api| Method | Path | Description |
|---|---|---|
| GET | / |
Welcome message |
| GET | /health |
Health check |
| POST | /todos |
Create a todo |
| GET | /todos |
List todos (?skip=0&limit=10) |
| GET | /todos/:id |
Get a todo |
| PUT | /todos/:id |
Update a todo |
| DELETE | /todos/:id |
Delete a todo |