-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.http
98 lines (61 loc) · 1.26 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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=Buy
###
GET http://localhost:3000/todos/?category=WORK&status=DONE
###
GET http://localhost:3000/todos/?category=HOME
###
GET http://localhost:3000/todos/?category=LEARNING&priority=HIGH
###
GET http://localhost:3000/agenda/?date=2021-37-44
###
GET http://localhost:3000/todos/1/
####
POST http://localhost:3000/todos/
Content-Type: application/json
{
"id": 6,
"todo": "Finalize event theme",
"priority": "LOW",
"status": "TO DO",
"category": "HOME",
"dueDate": "2021-2-22"
}
###
PUT http://localhost:3000/todos/1/
Content-Type: application/json
{
"status": "DONE"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"dueDate": "2021-12-12"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"priority": "HIGH"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"todo": "Clean the garden"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"category": "LEARNING"
}
###
DELETE http://localhost:3000/todos/1/
###