· 5 years ago · Mar 03, 2021, 03:10 PM
1{
2 "info": {
3 "_postman_id": "9f559fa3-f1ac-495e-9fe5-d40d36a3308b",
4 "name": "wapp",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6 },
7 "item": [
8 {
9 "name": "users/login",
10 "event": [
11 {
12 "listen": "test",
13 "script": {
14 "id": "3d474a0b-4af0-4b66-aa85-25d2230a7d26",
15 "exec": [
16 "var response = pm.response.text();\r",
17 "postman.setGlobalVariable(\"token\", response);\r",
18 "console.log(\"response: \"+response);"
19 ],
20 "type": "text/javascript"
21 }
22 }
23 ],
24 "request": {
25 "auth": {
26 "type": "bearer",
27 "bearer": [
28 {
29 "key": "token",
30 "value": "{{auth-token}}",
31 "type": "string"
32 }
33 ]
34 },
35 "method": "POST",
36 "header": [
37 {
38 "key": "Content-Type",
39 "name": "Content-Type",
40 "value": "application/json",
41 "type": "text"
42 },
43 {
44 "key": "auth-token",
45 "value": "{{token}}",
46 "type": "text"
47 }
48 ],
49 "body": {
50 "mode": "raw",
51 "raw": "{\n\t\"email\": \"test@test.de\",\n\t\"password\": \"test1234\"\n}",
52 "options": {
53 "raw": {
54 "language": "json"
55 }
56 }
57 },
58 "url": {
59 "raw": "{{server-address}}/api/users/login",
60 "host": [
61 "{{server-address}}"
62 ],
63 "path": [
64 "api",
65 "users",
66 "login"
67 ]
68 },
69 "description": "Login to api"
70 },
71 "response": []
72 },
73 {
74 "name": "users/register",
75 "event": [
76 {
77 "listen": "test",
78 "script": {
79 "id": "c64bdc76-3ebe-47e0-9c93-7ef99ed97ce2",
80 "exec": [
81 ""
82 ],
83 "type": "text/javascript"
84 }
85 }
86 ],
87 "request": {
88 "auth": {
89 "type": "bearer",
90 "bearer": [
91 {
92 "key": "token",
93 "value": "{{auth-token}}",
94 "type": "string"
95 }
96 ]
97 },
98 "method": "POST",
99 "header": [
100 {
101 "key": "Content-Type",
102 "name": "Content-Type",
103 "type": "text",
104 "value": "application/json"
105 },
106 {
107 "key": "auth-token",
108 "type": "text",
109 "value": "{{token}}"
110 }
111 ],
112 "body": {
113 "mode": "raw",
114 "raw": "{\n\t\"email\": \"test@test.de\",\n\t\"password\": \"test1234\"\n}",
115 "options": {
116 "raw": {
117 "language": "json"
118 }
119 }
120 },
121 "url": {
122 "raw": "{{server-address}}/api/users/register",
123 "host": [
124 "{{server-address}}"
125 ],
126 "path": [
127 "api",
128 "users",
129 "register"
130 ]
131 },
132 "description": "Register to api"
133 },
134 "response": []
135 },
136 {
137 "name": "drinks/register",
138 "event": [
139 {
140 "listen": "test",
141 "script": {
142 "id": "21c65f59-dbcb-4fb1-a93d-039c309c3b1b",
143 "exec": [
144 ""
145 ],
146 "type": "text/javascript"
147 }
148 }
149 ],
150 "request": {
151 "auth": {
152 "type": "bearer",
153 "bearer": [
154 {
155 "key": "token",
156 "value": "{{auth-token}}",
157 "type": "string"
158 }
159 ]
160 },
161 "method": "POST",
162 "header": [
163 {
164 "key": "Content-Type",
165 "name": "Content-Type",
166 "type": "text",
167 "value": "application/json"
168 },
169 {
170 "key": "auth-token",
171 "type": "text",
172 "value": "{{token}}"
173 }
174 ],
175 "body": {
176 "mode": "raw",
177 "raw": "{\r\n\t\"afg\":\t\t\t\"false\",\r\n\t\"beer\":\t\t\t\"true\",\r\n\t\"cocktail\":\t\t\"false\",\r\n\t\"longdrink\":\t\"false\",\r\n\t\"shot\":\t\t\t\"false\",\r\n\t\"name\":\t\t\t\"Becks\",\r\n\t\"size\":\t\t\t\"0.5\",\r\n\t\"price\":\t\t\"2\",\r\n\t\"description\":\t\"Pils Bier\"\r\n}",
178 "options": {
179 "raw": {
180 "language": "json"
181 }
182 }
183 },
184 "url": {
185 "raw": "{{server-address}}/api/drinks/register",
186 "host": [
187 "{{server-address}}"
188 ],
189 "path": [
190 "api",
191 "drinks",
192 "register"
193 ]
194 },
195 "description": "Register drink to api"
196 },
197 "response": []
198 },
199 {
200 "name": "drinks/delete",
201 "event": [
202 {
203 "listen": "test",
204 "script": {
205 "id": "20b4e8fd-f06f-4e1b-99cc-8e9accc2f471",
206 "exec": [
207 ""
208 ],
209 "type": "text/javascript"
210 }
211 }
212 ],
213 "request": {
214 "auth": {
215 "type": "bearer",
216 "bearer": [
217 {
218 "key": "token",
219 "value": "{{auth-token}}",
220 "type": "string"
221 }
222 ]
223 },
224 "method": "POST",
225 "header": [
226 {
227 "key": "Content-Type",
228 "name": "Content-Type",
229 "type": "text",
230 "value": "application/json"
231 },
232 {
233 "key": "auth-token",
234 "type": "text",
235 "value": "{{token}}"
236 }
237 ],
238 "body": {
239 "mode": "raw",
240 "raw": "{\n\t\"name\": \"Becks\"\n}",
241 "options": {
242 "raw": {
243 "language": "json"
244 }
245 }
246 },
247 "url": {
248 "raw": "{{server-address}}/api/drinks/delete",
249 "host": [
250 "{{server-address}}"
251 ],
252 "path": [
253 "api",
254 "drinks",
255 "delete"
256 ]
257 },
258 "description": "Remove drink from api"
259 },
260 "response": []
261 },
262 {
263 "name": "snacks/register",
264 "event": [
265 {
266 "listen": "test",
267 "script": {
268 "id": "85d2cf0a-dc5b-42ed-a3f9-dc73119d40d4",
269 "exec": [
270 ""
271 ],
272 "type": "text/javascript"
273 }
274 }
275 ],
276 "request": {
277 "auth": {
278 "type": "bearer",
279 "bearer": [
280 {
281 "key": "token",
282 "value": "{{auth-token}}",
283 "type": "string"
284 }
285 ]
286 },
287 "method": "POST",
288 "header": [
289 {
290 "key": "Content-Type",
291 "name": "Content-Type",
292 "value": "application/json",
293 "type": "text"
294 },
295 {
296 "key": "auth-token",
297 "value": "{{token}}",
298 "type": "text"
299 }
300 ],
301 "body": {
302 "mode": "raw",
303 "raw": "{\n\t\"name\":\t\t\t\"Salzstangen\",\n\t\"price\":\t\t\"2.5\",\n\t\"description\":\t\"Stangen mit Salz\"\n}",
304 "options": {
305 "raw": {
306 "language": "json"
307 }
308 }
309 },
310 "url": {
311 "raw": "{{server-address}}/api/snacks/register",
312 "host": [
313 "{{server-address}}"
314 ],
315 "path": [
316 "api",
317 "snacks",
318 "register"
319 ]
320 },
321 "description": "Register snacks to api"
322 },
323 "response": []
324 },
325 {
326 "name": "snacks/delete",
327 "event": [
328 {
329 "listen": "test",
330 "script": {
331 "id": "129ff1a0-9da9-4b47-9022-1116e3dcc91a",
332 "exec": [
333 ""
334 ],
335 "type": "text/javascript"
336 }
337 }
338 ],
339 "request": {
340 "auth": {
341 "type": "bearer",
342 "bearer": [
343 {
344 "key": "token",
345 "value": "{{auth-token}}",
346 "type": "string"
347 }
348 ]
349 },
350 "method": "POST",
351 "header": [
352 {
353 "key": "Content-Type",
354 "name": "Content-Type",
355 "type": "text",
356 "value": "application/json"
357 },
358 {
359 "key": "auth-token",
360 "type": "text",
361 "value": "{{token}}"
362 }
363 ],
364 "body": {
365 "mode": "raw",
366 "raw": "{\n\t\"email\": \"Salzstangen\"\n}",
367 "options": {
368 "raw": {
369 "language": "json"
370 }
371 }
372 },
373 "url": {
374 "raw": "{{server-address}}/api/snacks/delete",
375 "host": [
376 "{{server-address}}"
377 ],
378 "path": [
379 "api",
380 "snacks",
381 "delete"
382 ]
383 },
384 "description": "Remove snacks from api"
385 },
386 "response": []
387 },
388 {
389 "name": "events/register",
390 "event": [
391 {
392 "listen": "test",
393 "script": {
394 "id": "e67154a2-3068-4221-8c63-0e58322505f6",
395 "exec": [
396 ""
397 ],
398 "type": "text/javascript"
399 }
400 }
401 ],
402 "request": {
403 "auth": {
404 "type": "bearer",
405 "bearer": [
406 {
407 "key": "token",
408 "value": "{{auth-token}}",
409 "type": "string"
410 }
411 ]
412 },
413 "method": "POST",
414 "header": [
415 {
416 "key": "Content-Type",
417 "name": "Content-Type",
418 "value": "application/json",
419 "type": "text"
420 },
421 {
422 "key": "auth-token",
423 "value": "{{token}}",
424 "type": "text"
425 }
426 ],
427 "body": {
428 "mode": "raw",
429 "raw": "{\n\t\"name\":\t\t\"Candy Party\",\n\t\"date\":\t\t\"05.25.2020\",\n\t\"time\":\t\t\"20:00 Uhr\",\n\t\"special1\":\t\"Schwarzbier 1€\",\n\t\"special2\":\t\"Sommerbowle\",\n\t\"special3\":\t\"Vodka-E 50c\",\n\t\"special4\":\t\"Dos Mas 1€\",\n\t\"act\":\t\t\"Veni Vedi Veni\"\n}",
430 "options": {
431 "raw": {
432 "language": "json"
433 }
434 }
435 },
436 "url": {
437 "raw": "{{server-address}}/api/events/register",
438 "host": [
439 "{{server-address}}"
440 ],
441 "path": [
442 "api",
443 "events",
444 "register"
445 ]
446 },
447 "description": "Register events to api"
448 },
449 "response": []
450 },
451 {
452 "name": "events/delete",
453 "event": [
454 {
455 "listen": "test",
456 "script": {
457 "id": "b44c15e5-9fee-425b-879c-8fe1e270ae93",
458 "exec": [
459 ""
460 ],
461 "type": "text/javascript"
462 }
463 }
464 ],
465 "request": {
466 "auth": {
467 "type": "bearer",
468 "bearer": [
469 {
470 "key": "token",
471 "value": "{{auth-token}}",
472 "type": "string"
473 }
474 ]
475 },
476 "method": "POST",
477 "header": [
478 {
479 "key": "Content-Type",
480 "name": "Content-Type",
481 "type": "text",
482 "value": "application/json"
483 },
484 {
485 "key": "auth-token",
486 "type": "text",
487 "value": "{{token}}"
488 }
489 ],
490 "body": {
491 "mode": "raw",
492 "raw": "{\n\t\"email\": \"Candy Party\"\n}",
493 "options": {
494 "raw": {
495 "language": "json"
496 }
497 }
498 },
499 "url": {
500 "raw": "{{server-address}}/api/events/delete",
501 "host": [
502 "{{server-address}}"
503 ],
504 "path": [
505 "api",
506 "events",
507 "delete"
508 ]
509 },
510 "description": "Remove events from api"
511 },
512 "response": []
513 }
514 ],
515 "protocolProfileBehavior": {}
516}