-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostRequests.http
192 lines (141 loc) · 4.07 KB
/
postRequests.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
@url = http://localhost:7000
######################################################
# BEAUTY #############################################
### Get all Beauty Posts
GET {{url}}/beauty
### GET authors Beauty ###
GET {{url}}/beauty/author/NriabZZ
### GET individual Beauty ###
GET {{url}}/beauty/62b1ac4cbdc67faca3f2d31f
### GET SEARCH RESULT ###
GET {{url}}/beauty/title/natural
### GET SEARCH RESULT ###
GET {{url}}/beauty/category/hi
### GET SEARCH RESULT ###
GET {{url}}/beauty/tags/deo
### Create a new Beauty Post
POST {{url}}/beauty
Content-Type: application/json
{
"title": "beauty test with cookies",
"description": "Cookies test for the beauty post"
}
### Update a Beauty Post
PATCH {{url}}/beauty/629748f22a0811687ef577b3
Content-Type: application/json
{
"description": "Cookies test and now I updated it"
}
### Like a Beauty Post
PATCH {{url}}/beauty/62b1ac4cbdc67faca3f2d31f/like
Content-Type: application/json
### Delete a Beauty Post
DELETE {{url}}/beauty/629748f22a0811687ef577b3
Content-Type: application/json
###################################################
# ArtsCraft #############################################
### Get all ArtsCraft Posts
GET {{url}}/artsCraft
### Create a new ArtsCraft Post
POST {{url}}/artsCraft
Content-Type: application/json
{
"title": "artsCraft with cookie",
"description": "Just the test"
}
### Update a ArtsCraft Post
PATCH {{url}}/artsCraft/62989b31a74dc2b61a1a7748
Content-Type: application/json
{
"description": "updating test with cookie descp"
}
### Like a ArtsCraft Post
PATCH {{url}}/artsCraft/62b1ac70bdc67faca3f2d333/like
Content-Type: application/json
### Delete a ArtsCraft Post
DELETE {{url}}/artsCraft/6296853a15a814035d8f2717
Content-Type: application/json
###################################################
# GARDEN #############################################
### Get all garden Posts
GET {{url}}/garden
### Create a new garden Post
POST {{url}}/garden
Content-Type: application/json
{
"title": "test register token 2",
"description": "2 test"
}
### Update a garden Post
PATCH {{url}}/garden/6298890f0e5de9ac71213563
Content-Type: application/json
{
"title": "garden test with cookie",
"description": "Can this work with cookies?"
}
### Like a garden Post
PATCH {{url}}/garden/62b1ac7ebdc67faca3f2d347/like
Content-Type: application/json
### Delete a garden Post
DELETE {{url}}/garden/62988aa606a3135453b2fd4a
Content-Type: application/json
#####################################################
# EVENT #############################################
### Get all Events
GET {{url}}/event
### Create a new event
POST {{url}}/event
Content-Type: application/json
{
"title": "event test with register token",
"description": "event test",
"start": "2022-06-10",
"startTime": "8:00am",
"endDate": "9:00am",
"end": "8:30am",
"address": {
"street": "Pumpkin",
"streetNumber": "2a",
"zip": 4317,
"city": "Leipzig",
"country": "Germany"
}
}
### Update an event
PATCH {{url}}/event/62b1ac38bdc67faca3f2d310
Content-Type: application/json
{
"startDate": "2022-08-01"
}
### Like an event
PATCH {{url}}/event/62b1ac38bdc67faca3f2d310/like
Content-Type: application/json
### attend to an event
PATCH {{url}}/event/62b1ac38bdc67faca3f2d310/attend
Content-Type: application/json
### Delete an event
DELETE {{url}}/event/6298a2636bf335882883a224
Content-Type: application/json
######################################################
# RECIPE #############################################
### Get all recipe
GET {{url}}/recipe
### Create a recipe
POST {{url}}/recipe
Content-Type: application/json
{
"title": "testing Cookies",
"description": "testing if the avatar is there"
}
### Update a recipe
PATCH {{url}}/recipe/62989d5ea09204b724f880b5
Content-Type: application/json
{
"description": "updated the recipe routes"
}
### Like a recipe
PATCH {{url}}/recipe/62b1abf6bdc67faca3f2d2fb/like
Content-Type: application/json
### Delete a recipe
DELETE {{url}}/recipe/62989d5ea09204b724f880b5
Content-Type: application/json