-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fridget.postman_collection.json
364 lines (364 loc) · 9.63 KB
/
Fridget.postman_collection.json
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
{
"info": {
"_postman_id": "328e968b-1ea9-428b-b22b-641428c36fd2",
"name": "Fridget",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "ingredients",
"item": [
{
"name": "get-recipes-by-ingredient",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8000/ingredients/get-recipes-by-ingredients/?ingredients=butter,egg,flour",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"ingredients",
"get-recipes-by-ingredients",
""
],
"query": [
{
"key": "ingredients",
"value": "butter,egg,flour"
}
]
}
},
"response": []
}
]
},
{
"name": "recipes",
"item": [
{
"name": "get-recipes-by-name",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8000/recipes/get-recipes-by-name/?name=red lentil",
"host": [
"localhost"
],
"port": "8000",
"path": [
"recipes",
"get-recipes-by-name",
""
],
"query": [
{
"key": "name",
"value": "red lentil"
}
]
}
},
"response": []
},
{
"name": "get-recipes-by-category",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8000/categories/get-recipes-by-category/?category=Vegan",
"host": [
"localhost"
],
"port": "8000",
"path": [
"categories",
"get-recipes-by-category",
""
],
"query": [
{
"key": "category",
"value": "Vegan"
}
]
}
},
"response": []
},
{
"name": "get-recipes-by-area",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8000/areas/get-recipes-by-area/?area=india",
"host": [
"localhost"
],
"port": "8000",
"path": [
"areas",
"get-recipes-by-area",
""
],
"query": [
{
"key": "area",
"value": "india"
}
]
}
},
"response": []
},
{
"name": "create-recipe",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"user_id\": 1,\n \"recipe\":{\n\t\t\"id\": 1,\n\t\t\"name\": \"abradab\",\n\t\t\"instructions\": \"Pick through your lentils for any foreign debris, rinse them 2 or 3 times, drain, and set aside. Fair warning, this will probably turn your lentils into a solid block that you’ll have to break up later\\r\\nIn a large pot over medium-high heat, sauté the olive oil and the onion with a pinch of salt for about 3 minutes, then add the carrots and cook for another 3 minutes.\\r\\nAdd the tomato paste and stir it around for around 1 minute. Now add the cumin, paprika, mint, thyme, black pepper, and red pepper as quickly as you can and stir for 10 seconds to bloom the spices. Congratulate yourself on how amazing your house now smells.\\r\\nImmediately add the lentils, water, broth, and salt. Bring the soup to a (gentle) boil.\\r\\nAfter it has come to a boil, reduce heat to medium-low, cover the pot halfway, and cook for 15-20 minutes or until the lentils have fallen apart and the carrots are completely cooked.\\r\\nAfter the soup has cooked and the lentils are tender, blend the soup either in a blender or simply use a hand blender to reach the consistency you desire. Taste for seasoning and add more salt if necessary.\\r\\nServe with crushed-up crackers, torn up bread, or something else to add some extra thickness. You could also use a traditional thickener (like cornstarch or flour), but I prefer to add crackers for some texture and saltiness. Makes great leftovers, stays good in the fridge for about a week.\",\n\t\t\"ingredients_measurements\": [\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Lentils\",\n\t\t\t\t\"measurement\": \"1 cup \"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Onion\",\n\t\t\t\t\"measurement\": \"1 large\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Carrots\",\n\t\t\t\t\"measurement\": \"1 large\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Tomato Puree\",\n\t\t\t\t\"measurement\": \"1 tbs\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Cumin\",\n\t\t\t\t\"measurement\": \"2 tsp\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Paprika\",\n\t\t\t\t\"measurement\": \"1 tsp \"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Mint\",\n\t\t\t\t\"measurement\": \"1/2 tsp\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Thyme\",\n\t\t\t\t\"measurement\": \"1/2 tsp\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Black Pepper\",\n\t\t\t\t\"measurement\": \"1/4 tsp\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Red Pepper Flakes\",\n\t\t\t\t\"measurement\": \"1/4 tsp\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Vegetable Stock\",\n\t\t\t\t\"measurement\": \"4 cups \"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Water\",\n\t\t\t\t\"measurement\": \"1 cup \"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"ingredient\": \"Sea Salt\",\n\t\t\t\t\"measurement\": \"Pinch\"\n\t\t\t}\n\t\t],\n\t\t\"image_url\": \"https://www.themealdb.com/images/media/meals/58oia61564916529.jpg\",\n\t\t\"source\": \"https://findingtimeforcooking.com/main-dishes/red-lentil-soup-corba/\",\n\t\t\"category\": {\n\t\t\t\"name\": \"Side\"\n\t\t},\n\t\t\"area\": {\n\t\t\t\"name\": \"Turkish\"\n\t\t},\n\t\t\"recipeingredientmeasurements\": []\n\t}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8000/recipes/create-recipe",
"host": [
"localhost"
],
"port": "8000",
"path": [
"recipes",
"create-recipe"
]
}
},
"response": []
},
{
"name": "get-recipes-by-random",
"request": {
"method": "GET",
"header": []
},
"response": []
}
]
},
{
"name": "users",
"item": [
{
"name": "get-saved-recipes",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8000/users/get-saved-recipes/",
"host": [
"localhost"
],
"port": "8000",
"path": [
"users",
"get-saved-recipes",
""
]
}
},
"response": []
},
{
"name": "save-recipe",
"request": {
"method": "GET",
"header": []
},
"response": []
},
{
"name": "get-ingredients",
"request": {
"method": "GET",
"header": []
},
"response": []
},
{
"name": "add-ingredients",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJuYXRlIiwiZXhwIjoxNjY5NTc2OTE5fQ.9R5K5zBsOXEuOl3ArTYS_dQh2Pm7iUhA5a3kdBLn5T8",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"ingredients\": [\"ham\"]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8000/users/add-ingredients/",
"host": [
"localhost"
],
"port": "8000",
"path": [
"users",
"add-ingredients",
""
]
}
},
"response": []
},
{
"name": "get-created-recipes",
"request": {
"method": "GET",
"header": []
},
"response": []
}
]
},
{
"name": "auth",
"item": [
{
"name": "sign-up",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "nate",
"type": "text"
},
{
"key": "password",
"value": "nater",
"type": "text"
}
]
},
"url": {
"raw": "localhost:8000/auth/sign-up",
"host": [
"localhost"
],
"port": "8000",
"path": [
"auth",
"sign-up"
]
}
},
"response": []
},
{
"name": "login",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "username",
"value": "nate",
"type": "text"
},
{
"key": "password",
"value": "nater",
"type": "text"
}
]
},
"url": {
"raw": "localhost:8000/auth/login",
"host": [
"localhost"
],
"port": "8000",
"path": [
"auth",
"login"
]
}
},
"response": []
},
{
"name": "logout",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "localhost:8000/auth/logout",
"host": [
"localhost"
],
"port": "8000",
"path": [
"auth",
"logout"
]
}
},
"response": []
}
]
}
]
}