Projects - Jule 2022
entities ➡️ actions ⬇️ |
/tasks | /tasks/12 |
---|---|---|
GET | read all tasks usually uses query params for search/filter/sort ?order=date (ORDER BY DATE DESC) ?due_by=20220505 (WHERE due_date < date(20220505)) |
get details of task id 12 |
POST | create a new task body will contain title, due date etc (task id will be generated by server) |
❌ usually we do not have POST requests on individual entities |
PUT | ❌ usually we do not have PUT requests on collections |
create a new task body will contain title, due date etc new task with id 12 will be created (or overwritten) (task id generated by client) |
PATCH | ❌ usually we do not have PATCH requests on collections |
update an existing task body can contain new title, or new due date |
DELETE | ❌ usually we do not have DELETE requests on collections |
delete task id 12 |