-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.http
More file actions
64 lines (42 loc) · 967 Bytes
/
app.http
File metadata and controls
64 lines (42 loc) · 967 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
GET http://localhost:3000/todos/
###
GET http://localhost:3000/todos/?priority=HIGH
###
GET http://localhost:3000/todos/?priority=HIGH&status=IN%20PROGRESS
###
GET http://localhost:3000/todos/?search_q=Learn
###
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/todos/1/
####
GET http://localhost:3000/agenda/?date=2021-04-04
###
POST http://localhost:3000/todos/
Content-Type: application/json
{
"id":10,
"todo": "Finalize event theme",
"priority": "LOW",
"status": "TO DO",
"category": "HOME",
"dueDate": "2021-02-22"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"status": "DONE"
}
###
PUT http://localhost:3000/todos/2/
Content-Type: application/json
{
"dueDate": "2021-12-12"
}
###
DELETE http://localhost:3000/todos/2/