-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommentRequests.http
85 lines (54 loc) · 1.35 KB
/
commentRequests.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
@url = http://localhost:7000
### Get all Comments
GET {{url}}/comments
### Create a new Comment for beauty
POST {{url}}/comments
Content-Type: application/json
{
"type":"beauty",
"beauty":"62a72cf92d3c3ca162d2d647",
"message":"I like cookies after lunch"
}
### Create a new Comment for recipe
POST {{url}}/comments
Content-Type: application/json
{
"type":"recipe",
"recipe":"62a72e7382887ede1dd9a5b6",
"message":"this is awesome stuff!!!"
}
### Create a new Comment for artsCraft
POST {{url}}/comments
Content-Type: application/json
{
"type":"artsCraft",
"artsCraft":"62a305e75acc5b98cc41d7c2",
"message":"this is awesome!!!"
}
### Create a new Comment for garden
POST {{url}}/comments
Content-Type: application/json
{
"type":"garden",
"garden":"62a305f05acc5b98cc41d7c7",
"message":"this is awesome!!!"
}
### Create a new Comment for event
POST {{url}}/comments
Content-Type: application/json
{
"type":"event",
"event":"62a306015acc5b98cc41d7cc",
"message":"this is awesome!!!"
}
### Edit a comment
PATCH {{url}}/comments/62a72e369bc10ecf19fba052
Content-Type: application/json
{
"message":"edit a comment"
}
### Delete a comment
DELETE {{url}}/comments/62a72e369bc10ecf19fba052
### Like a comment
PATCH {{url}}/comments/62a72e369bc10ecf19fba052/like
Content-Type: application/json