Last active
March 8, 2019 08:49
-
-
Save iporsut/05b237d24f5ebf686d03a14e68bd0beb to your computer and use it in GitHub Desktop.
TODO API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /todos | |
GET /todos/:id | |
POST /todos | |
PUT /todos/:id | |
DETELE /todos/:id | |
// https://docs.mongodb.com/manual/reference/operator/update-array/ | |
POST /todos/:id/tasks | |
{ | |
"desc": "Do 1", | |
} | |
PUT /todos/:id/tasks/:task_id | |
{ | |
"desc": "Do 1", | |
"done": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment