Design
Plan the structure of a REST API: endpoints, data models, and flow.
Intro
Goal: design a small REST API for managing tasks. We define endpoints, data models, and flow.
Endpoints
GET /tasks: list all tasksPOST /tasks: create taskGET /tasks/{id}: get one taskPUT /tasks/{id}: update taskDELETE /tasks/{id}: delete task