Skip to content

scaleracademy/Project-Module-Jul-2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projects - Jule 2022

REST APIs

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages