- users
- todos
Method | Endpoint | What does this do? |
---|---|---|
GET |
/users |
_________________ |
GET |
/users/<user-id> |
_________________ |
POST |
/users/signup |
_________________ |
- Fill in the blanks above ⬆️
Method | Endpoint | What does this do? | Possible Query Params |
---|---|---|---|
GET |
/todos |
_________________ |
username=<username> , `completed=<true |
POST |
/todos |
_________________ |
|
GET |
/todos/<todo-id> |
_________________ |
|
PUT |
/todos/<todo-id> |
_________________ |
|
PATCH |
/todos/<todo-id> |
_________________ |
|
DELETE |
/todos/<todo-id> |
_________________ |
- Fill in the blanks above ⬆️
-
Try out all the requests that are possible with this API. For all the possible requests Create a list like the following. Separate requests by a long line of underscores.
- Request: METHOD - ENDPOINT
- Body (if applicable POST/PUT/PATCH)
{ "owner": "alejo4373", "text": "1st Todo" }
- Response:
{ "userId": 1, "id": 1, "title": "delectus aut autem", "completed": false }
- What does it do?: EXPLAIN WHAT THE REQUEST DID/DO IN PLAIN ENGLISH
-
Find as much status codes as possible. I will tell you how many there are by the end.
- Take a look at the next lesson. To learn how to make make network requests with Javascript Since you previously had build a simple Todos APP with HTML try to connect that app to this API so that todos you enter in the page are save to the API. Marking a todo as complete or uncompleted should work.
- Find the easter egg.