· 5 years ago · Jun 14, 2020, 04:02 PM
1{
2 "info": {
3 "_postman_id": "9a23622f-1624-4014-89d1-d6b76e06f33f",
4 "name": "projektMongo",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6 },
7 "item": [
8 {
9 "name": "getAll",
10 "request": {
11 "method": "GET",
12 "header": [],
13 "url": {
14 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/all",
15 "protocol": "http",
16 "host": [
17 "localhost"
18 ],
19 "port": "14787",
20 "path": [
21 "MongoDBprojekt",
22 "webresources",
23 "api",
24 "all"
25 ]
26 },
27 "description": "get all artists"
28 },
29 "response": []
30 },
31 {
32 "name": "getArtistById",
33 "request": {
34 "auth": {
35 "type": "basic",
36 "basic": [
37 {
38 "key": "username",
39 "value": "admin",
40 "type": "string"
41 },
42 {
43 "key": "password",
44 "value": "admin",
45 "type": "string"
46 }
47 ]
48 },
49 "method": "GET",
50 "header": [],
51 "url": {
52 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/artists/5ee3d968e4d6dd7a07d6412f",
53 "protocol": "http",
54 "host": [
55 "localhost"
56 ],
57 "port": "14787",
58 "path": [
59 "MongoDBprojekt",
60 "webresources",
61 "api",
62 "artists",
63 "5ee3d968e4d6dd7a07d6412f"
64 ]
65 }
66 },
67 "response": []
68 },
69 {
70 "name": "getSongsFromAlbum",
71 "request": {
72 "auth": {
73 "type": "basic",
74 "basic": [
75 {
76 "key": "username",
77 "value": "admin",
78 "type": "string"
79 },
80 {
81 "key": "password",
82 "value": "admin",
83 "type": "string"
84 }
85 ]
86 },
87 "method": "GET",
88 "header": [],
89 "url": {
90 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/getSongsFromAlbum/5ee3d968e4d6dd7a07d64128",
91 "protocol": "http",
92 "host": [
93 "localhost"
94 ],
95 "port": "14787",
96 "path": [
97 "MongoDBprojekt",
98 "webresources",
99 "api",
100 "getSongsFromAlbum",
101 "5ee3d968e4d6dd7a07d64128"
102 ]
103 }
104 },
105 "response": []
106 },
107 {
108 "name": "getAlbumsbyBandId",
109 "request": {
110 "method": "GET",
111 "header": [],
112 "url": {
113 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/getAlbums/5ee3d968e4d6dd7a07d6412f",
114 "protocol": "http",
115 "host": [
116 "localhost"
117 ],
118 "port": "14787",
119 "path": [
120 "MongoDBprojekt",
121 "webresources",
122 "api",
123 "getAlbums",
124 "5ee3d968e4d6dd7a07d6412f"
125 ]
126 }
127 },
128 "response": []
129 },
130 {
131 "name": "postNewBand",
132 "request": {
133 "method": "POST",
134 "header": [],
135 "url": {
136 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addBand/testowaNazwa/testowyLink.com/opis",
137 "protocol": "http",
138 "host": [
139 "localhost"
140 ],
141 "port": "14787",
142 "path": [
143 "MongoDBprojekt",
144 "webresources",
145 "api",
146 "addBand",
147 "testowaNazwa",
148 "testowyLink.com",
149 "opis"
150 ]
151 }
152 },
153 "response": []
154 },
155 {
156 "name": "addAlbumToBand",
157 "request": {
158 "method": "POST",
159 "header": [],
160 "url": {
161 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addAlbum/5ee5431377c8bf3e61d5dc15/stary album/997/2url/",
162 "protocol": "http",
163 "host": [
164 "localhost"
165 ],
166 "port": "14787",
167 "path": [
168 "MongoDBprojekt",
169 "webresources",
170 "api",
171 "addAlbum",
172 "5ee5431377c8bf3e61d5dc15",
173 "stary album",
174 "997",
175 "2url",
176 ""
177 ]
178 }
179 },
180 "response": []
181 },
182 {
183 "name": "addSongToAlbum",
184 "request": {
185 "method": "POST",
186 "header": [],
187 "url": {
188 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addSong/5ee3d968e4d6dd7a07d6412f/5ee3d968e4d6dd7a07d64128/testowaPiosenka",
189 "protocol": "http",
190 "host": [
191 "localhost"
192 ],
193 "port": "14787",
194 "path": [
195 "MongoDBprojekt",
196 "webresources",
197 "api",
198 "addSong",
199 "5ee3d968e4d6dd7a07d6412f",
200 "5ee3d968e4d6dd7a07d64128",
201 "testowaPiosenka"
202 ]
203 }
204 },
205 "response": []
206 },
207 {
208 "name": "addComment",
209 "request": {
210 "auth": {
211 "type": "basic",
212 "basic": [
213 {
214 "key": "username",
215 "value": "admin",
216 "type": "string"
217 },
218 {
219 "key": "password",
220 "value": "admin",
221 "type": "string"
222 }
223 ]
224 },
225 "method": "POST",
226 "header": [],
227 "url": {
228 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addComment/5ee3d968e4d6dd7a07d64128/1/tomboy/kiedy ciach bajeraa2",
229 "protocol": "http",
230 "host": [
231 "localhost"
232 ],
233 "port": "14787",
234 "path": [
235 "MongoDBprojekt",
236 "webresources",
237 "api",
238 "addComment",
239 "5ee3d968e4d6dd7a07d64128",
240 "1",
241 "tomboy",
242 "kiedy ciach bajeraa2"
243 ]
244 }
245 },
246 "response": []
247 },
248 {
249 "name": "addRating",
250 "request": {
251 "method": "POST",
252 "header": [],
253 "url": {
254 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addRating/5ee3d968e4d6dd7a07d64128/1/997",
255 "protocol": "http",
256 "host": [
257 "localhost"
258 ],
259 "port": "14787",
260 "path": [
261 "MongoDBprojekt",
262 "webresources",
263 "api",
264 "addRating",
265 "5ee3d968e4d6dd7a07d64128",
266 "1",
267 "997"
268 ]
269 }
270 },
271 "response": []
272 },
273 {
274 "name": "addComment2",
275 "request": {
276 "method": "POST",
277 "header": [],
278 "url": {
279 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addComment2/5ee3d968e4d6dd7a07d64128/5ee3d968e4d6dd7a07d6412c/testowyPoSongId/sprawdzam czy dziala",
280 "protocol": "http",
281 "host": [
282 "localhost"
283 ],
284 "port": "14787",
285 "path": [
286 "MongoDBprojekt",
287 "webresources",
288 "api",
289 "addComment2",
290 "5ee3d968e4d6dd7a07d64128",
291 "5ee3d968e4d6dd7a07d6412c",
292 "testowyPoSongId",
293 "sprawdzam czy dziala"
294 ]
295 }
296 },
297 "response": []
298 },
299 {
300 "name": "addRating2",
301 "request": {
302 "method": "POST",
303 "header": [],
304 "url": {
305 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addRating2/5ee5540e77c87cf35fc84f34/5ee5547d77c87cf35fc84f35/16",
306 "protocol": "http",
307 "host": [
308 "localhost"
309 ],
310 "port": "14787",
311 "path": [
312 "MongoDBprojekt",
313 "webresources",
314 "api",
315 "addRating2",
316 "5ee5540e77c87cf35fc84f34",
317 "5ee5547d77c87cf35fc84f35",
318 "16"
319 ]
320 }
321 },
322 "response": []
323 },
324 {
325 "name": "editArtistBio",
326 "request": {
327 "method": "PUT",
328 "header": [],
329 "url": {
330 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/editBio/5ee5453177c8bf3e61d5dc1f/na testa",
331 "protocol": "http",
332 "host": [
333 "localhost"
334 ],
335 "port": "14787",
336 "path": [
337 "MongoDBprojekt",
338 "webresources",
339 "api",
340 "editBio",
341 "5ee5453177c8bf3e61d5dc1f",
342 "na testa"
343 ]
344 }
345 },
346 "response": []
347 },
348 {
349 "name": "editArtistImage",
350 "request": {
351 "method": "PUT",
352 "header": [],
353 "url": {
354 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/editArtistImage/5ee4001777c87be2f00d3030/nowyUrl",
355 "protocol": "http",
356 "host": [
357 "localhost"
358 ],
359 "port": "14787",
360 "path": [
361 "MongoDBprojekt",
362 "webresources",
363 "api",
364 "editArtistImage",
365 "5ee4001777c87be2f00d3030",
366 "nowyUrl"
367 ]
368 }
369 },
370 "response": []
371 },
372 {
373 "name": "editArtistName",
374 "request": {
375 "method": "PUT",
376 "header": [],
377 "url": {
378 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/editArtistName/5ee4001777c87be2f00d3030/nowaNazwaTestowa",
379 "protocol": "http",
380 "host": [
381 "localhost"
382 ],
383 "port": "14787",
384 "path": [
385 "MongoDBprojekt",
386 "webresources",
387 "api",
388 "editArtistName",
389 "5ee4001777c87be2f00d3030",
390 "nowaNazwaTestowa"
391 ]
392 }
393 },
394 "response": []
395 },
396 {
397 "name": "deleteArtist",
398 "request": {
399 "method": "DELETE",
400 "header": [],
401 "url": {
402 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/removeArtist/5ee5032677c8d1c0e2da16d5",
403 "protocol": "http",
404 "host": [
405 "localhost"
406 ],
407 "port": "14787",
408 "path": [
409 "MongoDBprojekt",
410 "webresources",
411 "api",
412 "removeArtist",
413 "5ee5032677c8d1c0e2da16d5"
414 ]
415 }
416 },
417 "response": []
418 },
419 {
420 "name": "removeAlbum",
421 "request": {
422 "method": "DELETE",
423 "header": [],
424 "url": {
425 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/removeAlbum/5ee53aa377c8bf3e61d5dc14",
426 "protocol": "http",
427 "host": [
428 "localhost"
429 ],
430 "port": "14787",
431 "path": [
432 "MongoDBprojekt",
433 "webresources",
434 "api",
435 "removeAlbum",
436 "5ee53aa377c8bf3e61d5dc14"
437 ]
438 }
439 },
440 "response": []
441 },
442 {
443 "name": "addArtistWithBody",
444 "request": {
445 "method": "POST",
446 "header": [],
447 "body": {
448 "mode": "raw",
449 "raw": "{\n\t\"nazwa\": \"zespolTomeczka\",\n \"bio\": \"bardzo fajny tibijski zespol \",\n \"imageUrl\": \"www.test.com/url1/url2\"\n}",
450 "options": {
451 "raw": {
452 "language": "json"
453 }
454 }
455 },
456 "url": {
457 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addArtistWithBody",
458 "protocol": "http",
459 "host": [
460 "localhost"
461 ],
462 "port": "14787",
463 "path": [
464 "MongoDBprojekt",
465 "webresources",
466 "api",
467 "addArtistWithBody"
468 ]
469 }
470 },
471 "response": []
472 },
473 {
474 "name": "addAlbumWithBody",
475 "request": {
476 "method": "POST",
477 "header": [],
478 "body": {
479 "mode": "raw",
480 "raw": "{\n\t\"artistId\" : \"5ee5453177c8bf3e61d5dc1f\",\n\t\"name\" : \"tibia7.6Sounds\",\n\t\"year\" : 2003,\n\t\"labelUrl\" : \"tibia.com/register\"\n}",
481 "options": {
482 "raw": {
483 "language": "json"
484 }
485 }
486 },
487 "url": {
488 "raw": "http://localhost:14787/MongoDBprojekt/webresources/api/addAlbumWithBody",
489 "protocol": "http",
490 "host": [
491 "localhost"
492 ],
493 "port": "14787",
494 "path": [
495 "MongoDBprojekt",
496 "webresources",
497 "api",
498 "addAlbumWithBody"
499 ]
500 }
501 },
502 "response": []
503 }
504 ],
505 "protocolProfileBehavior": {}
506}