Skip to content
 
 

Repository files navigation

Todo API — Python

CI/CD

A simple CRUD Todo API built with FastAPI, SQLAlchemy and SQLite.

Setup

python -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt

Run

uvicorn main:app --reload

API docs: http://localhost:8000/docs

Test

pytest --cov=. --cov-report=html

Docker

docker build -t todo-api .
docker run -p 8000:8000 todo-api

Endpoints

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages