-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
63 lines (40 loc) · 805 Bytes
/
app.http
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
GET http://localhost:3000/todos/?status=TO%20DO
###
GET http://localhost:3000/todos/?priority=HIGH
###
GET http://localhost:3000/todos/?priority=HIGH&status=IN%20PROGRESS
###
GET http://localhost:3000/todos/?search_q=Play
###
GET http://localhost:3000/todos/1/
###
POST http://localhost:3000/todos/
Content-Type: application/json
{
"id": 10,
"todo": "Finalize event theme",
"priority": "LOW",
"status": "TO DO"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"status": "DONE"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"priority": "HIGH"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"todo": "Some task"
}
###
DELETE http://localhost:3000/todos/4/
Content-Type: application/json
###