This project consists of an API that changes the task status based on a predefined state machine that this task must respect. It allows the user to do the normal CRUD operations. The API have 4 main operations: Create Task, Get Task, Delete Task, Update Task
python app.py
$ docker build --rm -t flaskapi:latest .
http://127.0.0.1:5000/tasks
{"status":"draft","title":"task_name"}
{"id": 3,"status": "draft","title": "task_name"}
http://127.0.0.1:5000/tasks/3
{"id": 3,"status": "draft","title": "task_name"}
http://127.0.0.1:5000/tasks/3
204 NO CONTENT
http://127.0.0.1:5000/tasks/1/archived
{"id": 1, "status": "archived", "title": "task2"}
http://127.0.0.1:5000/tasks
[{"id": 1, "status": "archived", "title": "task2"}, {"id": 2,"status": "draft", "title": "task1"}]