This is a simple Flask-based API for managing a list of todos.
- Description: Retrieve the list of todos.
- Response: JSON array of todos.
- Description: Add a new todo to the list.
- Request Body: JSON object with a
todofield. - Response: Confirmation message.
- Description: Delete a todo by its index.
- Response: Confirmation message and the deleted todo.
- Python 3.9
- Flask==2.3.2
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
docker build -t flask-todo-api .docker run -p 5000:5000 flask-todo-api