A simple REST API for managing todo items, built with Flask and Python.
- Python 3.12+
- Poetry
poetry install --no-rootpoetry run flask --app todo run -p 6400The API is available at http://localhost:6400/api/v1.
| Method | Path | Description |
|---|---|---|
GET |
/api/v1/health |
Health check |
GET |
/api/v1/todos |
List all todos |
GET |
/api/v1/todos/<id> |
Get a todo |
POST |
/api/v1/todos |
Create a todo |
PUT |
/api/v1/todos/<id> |
Update a todo |
DELETE |
/api/v1/todos/<id> |
Delete a todo |
poetry run python3 -m unittest discover -s tests