A Python FastAPI implementation of the Todo-Backend spec, running on Cloudflare Workers with D1 for storage.
Initialize the local D1 database and start the dev server:
uv run pywrangler d1 execute todos --local --file db_init.sql
uv run pywrangler devStart the dev server, then open the spec runner pointing at your local instance:
https://todobackend.com/specs/index.html?http://localhost:8787/todos
You can also use the Todo-Backend client app:
https://todobackend.com/client/index.html?http://localhost:8787/todos
| Method | Path | Description |
|---|---|---|
GET |
/todos |
List all todos |
POST |
/todos |
Create a todo |
DELETE |
/todos |
Delete all todos |
GET |
/todos/{id} |
Get a single todo |
PATCH |
/todos/{id} |
Update a todo |
DELETE |
/todos/{id} |
Delete a todo |