|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "15f10b58-dda5-4aaf-96e5-061a5c901717", |
| 3 | + "_postman_id": "87477d86-2d08-40b6-93c6-99a394193e28", |
4 | 4 | "name": "Topcoder-bookings-api", |
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
6 | 6 | }, |
@@ -19312,6 +19312,247 @@ |
19312 | 19312 | } |
19313 | 19313 | ] |
19314 | 19314 | }, |
| 19315 | + { |
| 19316 | + "name": "Member Suggestion", |
| 19317 | + "item": [ |
| 19318 | + { |
| 19319 | + "name": "get member suggestion successfully with administrator", |
| 19320 | + "event": [ |
| 19321 | + { |
| 19322 | + "listen": "test", |
| 19323 | + "script": { |
| 19324 | + "exec": [ |
| 19325 | + "pm.test('Status code is 200', function () {\r", |
| 19326 | + " pm.response.to.have.status(200);\r", |
| 19327 | + "});" |
| 19328 | + ], |
| 19329 | + "type": "text/javascript" |
| 19330 | + } |
| 19331 | + } |
| 19332 | + ], |
| 19333 | + "request": { |
| 19334 | + "method": "GET", |
| 19335 | + "header": [ |
| 19336 | + { |
| 19337 | + "key": "Authorization", |
| 19338 | + "type": "text", |
| 19339 | + "value": "Bearer {{token_administrator}}" |
| 19340 | + } |
| 19341 | + ], |
| 19342 | + "url": { |
| 19343 | + "raw": "{{URL}}/taas-teams/members-suggest/maxceem", |
| 19344 | + "host": [ |
| 19345 | + "{{URL}}" |
| 19346 | + ], |
| 19347 | + "path": [ |
| 19348 | + "taas-teams", |
| 19349 | + "members-suggest", |
| 19350 | + "maxceem" |
| 19351 | + ] |
| 19352 | + } |
| 19353 | + }, |
| 19354 | + "response": [] |
| 19355 | + }, |
| 19356 | + { |
| 19357 | + "name": "get member suggestion successfully with booking manager", |
| 19358 | + "event": [ |
| 19359 | + { |
| 19360 | + "listen": "test", |
| 19361 | + "script": { |
| 19362 | + "exec": [ |
| 19363 | + "pm.test('Status code is 200', function () {\r", |
| 19364 | + " pm.response.to.have.status(200);\r", |
| 19365 | + "});" |
| 19366 | + ], |
| 19367 | + "type": "text/javascript" |
| 19368 | + } |
| 19369 | + } |
| 19370 | + ], |
| 19371 | + "request": { |
| 19372 | + "method": "GET", |
| 19373 | + "header": [ |
| 19374 | + { |
| 19375 | + "key": "Authorization", |
| 19376 | + "type": "text", |
| 19377 | + "value": "Bearer {{token_bookingManager}}" |
| 19378 | + } |
| 19379 | + ], |
| 19380 | + "url": { |
| 19381 | + "raw": "{{URL}}/taas-teams/members-suggest/isbilir", |
| 19382 | + "host": [ |
| 19383 | + "{{URL}}" |
| 19384 | + ], |
| 19385 | + "path": [ |
| 19386 | + "taas-teams", |
| 19387 | + "members-suggest", |
| 19388 | + "isbilir" |
| 19389 | + ] |
| 19390 | + } |
| 19391 | + }, |
| 19392 | + "response": [] |
| 19393 | + }, |
| 19394 | + { |
| 19395 | + "name": "get member suggestion with connect manager", |
| 19396 | + "event": [ |
| 19397 | + { |
| 19398 | + "listen": "test", |
| 19399 | + "script": { |
| 19400 | + "exec": [ |
| 19401 | + "pm.test('Status code is 403', function () {\r", |
| 19402 | + " pm.response.to.have.status(403);\r", |
| 19403 | + " const response = pm.response.json()\r", |
| 19404 | + " pm.expect(response.message).to.eq(\"You are not allowed to perform this action!\")\r", |
| 19405 | + "});" |
| 19406 | + ], |
| 19407 | + "type": "text/javascript" |
| 19408 | + } |
| 19409 | + } |
| 19410 | + ], |
| 19411 | + "request": { |
| 19412 | + "method": "GET", |
| 19413 | + "header": [ |
| 19414 | + { |
| 19415 | + "key": "Authorization", |
| 19416 | + "type": "text", |
| 19417 | + "value": "Bearer {{token_connect_manager_pshahcopmanag2}}" |
| 19418 | + } |
| 19419 | + ], |
| 19420 | + "url": { |
| 19421 | + "raw": "{{URL}}/taas-teams/members-suggest/isbilir", |
| 19422 | + "host": [ |
| 19423 | + "{{URL}}" |
| 19424 | + ], |
| 19425 | + "path": [ |
| 19426 | + "taas-teams", |
| 19427 | + "members-suggest", |
| 19428 | + "isbilir" |
| 19429 | + ] |
| 19430 | + } |
| 19431 | + }, |
| 19432 | + "response": [] |
| 19433 | + }, |
| 19434 | + { |
| 19435 | + "name": "get member suggestion with member", |
| 19436 | + "event": [ |
| 19437 | + { |
| 19438 | + "listen": "test", |
| 19439 | + "script": { |
| 19440 | + "exec": [ |
| 19441 | + "pm.test('Status code is 403', function () {\r", |
| 19442 | + " pm.response.to.have.status(403);\r", |
| 19443 | + " const response = pm.response.json()\r", |
| 19444 | + " pm.expect(response.message).to.eq(\"You are not allowed to perform this action!\")\r", |
| 19445 | + "});" |
| 19446 | + ], |
| 19447 | + "type": "text/javascript" |
| 19448 | + } |
| 19449 | + } |
| 19450 | + ], |
| 19451 | + "request": { |
| 19452 | + "method": "GET", |
| 19453 | + "header": [ |
| 19454 | + { |
| 19455 | + "key": "Authorization", |
| 19456 | + "type": "text", |
| 19457 | + "value": "Bearer {{token_member}}" |
| 19458 | + } |
| 19459 | + ], |
| 19460 | + "url": { |
| 19461 | + "raw": "{{URL}}/taas-teams/members-suggest/isbilir", |
| 19462 | + "host": [ |
| 19463 | + "{{URL}}" |
| 19464 | + ], |
| 19465 | + "path": [ |
| 19466 | + "taas-teams", |
| 19467 | + "members-suggest", |
| 19468 | + "isbilir" |
| 19469 | + ] |
| 19470 | + } |
| 19471 | + }, |
| 19472 | + "response": [] |
| 19473 | + }, |
| 19474 | + { |
| 19475 | + "name": "get member suggestion with m2m", |
| 19476 | + "event": [ |
| 19477 | + { |
| 19478 | + "listen": "test", |
| 19479 | + "script": { |
| 19480 | + "exec": [ |
| 19481 | + "pm.test('Status code is 403', function () {\r", |
| 19482 | + " pm.response.to.have.status(403);\r", |
| 19483 | + " const response = pm.response.json()\r", |
| 19484 | + " pm.expect(response.message).to.eq(\"You are not allowed to perform this action!\")\r", |
| 19485 | + "});" |
| 19486 | + ], |
| 19487 | + "type": "text/javascript" |
| 19488 | + } |
| 19489 | + } |
| 19490 | + ], |
| 19491 | + "request": { |
| 19492 | + "method": "GET", |
| 19493 | + "header": [ |
| 19494 | + { |
| 19495 | + "key": "Authorization", |
| 19496 | + "type": "text", |
| 19497 | + "value": "Bearer {{token_m2m_all_job}}" |
| 19498 | + } |
| 19499 | + ], |
| 19500 | + "url": { |
| 19501 | + "raw": "{{URL}}/taas-teams/members-suggest/isbilir", |
| 19502 | + "host": [ |
| 19503 | + "{{URL}}" |
| 19504 | + ], |
| 19505 | + "path": [ |
| 19506 | + "taas-teams", |
| 19507 | + "members-suggest", |
| 19508 | + "isbilir" |
| 19509 | + ] |
| 19510 | + } |
| 19511 | + }, |
| 19512 | + "response": [] |
| 19513 | + }, |
| 19514 | + { |
| 19515 | + "name": "get member suggestion with invalid token", |
| 19516 | + "event": [ |
| 19517 | + { |
| 19518 | + "listen": "test", |
| 19519 | + "script": { |
| 19520 | + "exec": [ |
| 19521 | + "pm.test('Status code is 401', function () {\r", |
| 19522 | + " pm.response.to.have.status(401);\r", |
| 19523 | + " const response = pm.response.json()\r", |
| 19524 | + " pm.expect(response.message).to.eq(\"Invalid Token.\")\r", |
| 19525 | + "});" |
| 19526 | + ], |
| 19527 | + "type": "text/javascript" |
| 19528 | + } |
| 19529 | + } |
| 19530 | + ], |
| 19531 | + "request": { |
| 19532 | + "method": "GET", |
| 19533 | + "header": [ |
| 19534 | + { |
| 19535 | + "key": "Authorization", |
| 19536 | + "type": "text", |
| 19537 | + "value": "Bearer invalid" |
| 19538 | + } |
| 19539 | + ], |
| 19540 | + "url": { |
| 19541 | + "raw": "{{URL}}/taas-teams/members-suggest/isbilir", |
| 19542 | + "host": [ |
| 19543 | + "{{URL}}" |
| 19544 | + ], |
| 19545 | + "path": [ |
| 19546 | + "taas-teams", |
| 19547 | + "members-suggest", |
| 19548 | + "isbilir" |
| 19549 | + ] |
| 19550 | + } |
| 19551 | + }, |
| 19552 | + "response": [] |
| 19553 | + } |
| 19554 | + ] |
| 19555 | + }, |
19315 | 19556 | { |
19316 | 19557 | "name": "GET /taas-teams", |
19317 | 19558 | "request": { |
|
0 commit comments