-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.http
More file actions
47 lines (31 loc) · 787 Bytes
/
Copy pathclient.http
File metadata and controls
47 lines (31 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
###
GET http://localhost:3000/
###
GET http://localhost:3000/health
### CREATE TODO
POST http://localhost:3000/todo
Content-Type: application/json
{
"title": "Computador Mackintosh123",
"content": "Criar um Mackintosh123",
"category": "Computador"
}
### LIST TODO
GET http://localhost:3000/todos
Content-Type: application/json
### Define variable
@id=33c8746d-ccb0-437b-a9e8-868b69c1fa47
### GET TODO
GET http://localhost:3000/todo/{{id}}
Content-Type: application/json
#### patch
PATCH http://localhost:3000/todo/{{id}}
Content-Type: application/json
{
"title": "Jogos - GE Force Now22",
"content": "comprar GE Force jogar no macos",
"category": "Jogos PC"
}
### DELETE TODO
DELETE http://localhost:3000/todo/{{id}}
Content-Type: application/json