A simple Todo backend API built with FastAPI, PostgreSQL, and Docker.
- Create, Read, Update, and Delete todos
- PostgreSQL database for persistent storage
- Docker and Docker Compose setup
- RESTful API endpoints
- Docker
- Docker Compose
- Clone the repository
- Run the application:
docker-compose up --buildThe API will be available at http://localhost:8010
POST /todos/- Create a new todoGET /todos/- List all todosGET /todos/{todo_id}- Get a specific todoPUT /todos/{todo_id}- Update a todoDELETE /todos/{todo_id}- Delete a todo
Once the application is running, you can access:
- Swagger UI documentation at
http://localhost:8010/docs - ReDoc documentation at
http://localhost:8010/redoc
To run the application: Make sure you have Docker and Docker Compose installed Run docker-compose up --build The API will be available at http://localhost:8010 You can access the API documentation at: Swagger UI: http://localhost:8010/docs ReDoc: http://localhost:8010/redoc The API supports the following operations: Create a new todo List all todos Get a specific todo Update a todo Delete a todo Each todo item has the following fields: title (required) description (optional) completed (boolean, defaults to false) created_at (automatically set) updated_at (automatically updated) Would you like me to explain any specific part of the implementation or help you test the API?