A RESTful API built with Flask that allows clients to create, read, update, and delete tasks. Perfect for learning API design, HTTP methods, and JSON responses.
Follow these steps in order. Each one builds on the previous.
Install Flask and create the app.py file
Define the task data model as a dictionary
Create the GET /tasks endpoint to list all tasks
Create the POST /tasks endpoint to add a task
Create PUT /tasks/<id> to update a task
Create DELETE /tasks/<id> to remove a task
Add JSON file persistence for saving tasks
Test all endpoints using Postman or curl
Loading...