|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "d9f6cae1-30c2-4c85-96c3-428b1f2fc08d", |
| 3 | + "_postman_id": "97085cd7-b298-4f1c-9629-24af14ff5f13", |
4 | 4 | "name": "tc-project-service",
|
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
6 | 6 | },
|
|
278 | 278 | ],
|
279 | 279 | "body": {
|
280 | 280 | "mode": "raw",
|
281 |
| - "raw": "{\n\t\"param\": {\n\t\t\"title\": \"first attachment submission\",\n\t\t\"filePath\": \"asdjshdasdas/asdsadj/asdasd.png\",\n\t\t\"s3Bucket\": \"topcoder-project-service\",\n\t\t\"contentType\": \"application/png\"\n\t}\n}" |
| 281 | + "raw": "{\n\t\"param\": {\n\t\t\"title\": \"first attachment submission\",\n\t\t\"filePath\": \"asdjshdasdas/asdsadj/asdasd.png\",\n\t\t\"s3Bucket\": \"topcoder-project-service\",\n\t\t\"contentType\": \"application/png\",\n\t\t\"allowedUsers\": [40051331]\n\t}\n}" |
282 | 282 | },
|
283 | 283 | "url": {
|
284 |
| - "raw": "{{api-url}}/v4/projects/7/attachments", |
| 284 | + "raw": "{{api-url}}/v4/projects/1/attachments", |
285 | 285 | "host": [
|
286 | 286 | "{{api-url}}"
|
287 | 287 | ],
|
288 | 288 | "path": [
|
289 | 289 | "v4",
|
290 | 290 | "projects",
|
291 |
| - "7", |
| 291 | + "1", |
292 | 292 | "attachments"
|
293 | 293 | ]
|
294 | 294 | },
|
295 | 295 | "description": "Create an project attachment"
|
296 | 296 | },
|
297 | 297 | "response": []
|
298 | 298 | },
|
| 299 | + { |
| 300 | + "name": "Download attachment", |
| 301 | + "request": { |
| 302 | + "method": "GET", |
| 303 | + "header": [ |
| 304 | + { |
| 305 | + "key": "Authorization", |
| 306 | + "value": "Bearer {{jwt-token}}" |
| 307 | + }, |
| 308 | + { |
| 309 | + "key": "Content-Type", |
| 310 | + "value": "application/json" |
| 311 | + } |
| 312 | + ], |
| 313 | + "body": { |
| 314 | + "mode": "raw", |
| 315 | + "raw": "" |
| 316 | + }, |
| 317 | + "url": { |
| 318 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
| 319 | + "host": [ |
| 320 | + "{{api-url}}" |
| 321 | + ], |
| 322 | + "path": [ |
| 323 | + "v4", |
| 324 | + "projects", |
| 325 | + "1", |
| 326 | + "attachments", |
| 327 | + "2" |
| 328 | + ] |
| 329 | + }, |
| 330 | + "description": "Create an project attachment" |
| 331 | + }, |
| 332 | + "response": [] |
| 333 | + }, |
| 334 | + { |
| 335 | + "name": "Download attachment admin", |
| 336 | + "request": { |
| 337 | + "method": "GET", |
| 338 | + "header": [ |
| 339 | + { |
| 340 | + "key": "Authorization", |
| 341 | + "value": "Bearer {{jwt-token-admin-40051333}}" |
| 342 | + }, |
| 343 | + { |
| 344 | + "key": "Content-Type", |
| 345 | + "value": "application/json" |
| 346 | + } |
| 347 | + ], |
| 348 | + "body": { |
| 349 | + "mode": "raw", |
| 350 | + "raw": "" |
| 351 | + }, |
| 352 | + "url": { |
| 353 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
| 354 | + "host": [ |
| 355 | + "{{api-url}}" |
| 356 | + ], |
| 357 | + "path": [ |
| 358 | + "v4", |
| 359 | + "projects", |
| 360 | + "1", |
| 361 | + "attachments", |
| 362 | + "2" |
| 363 | + ] |
| 364 | + }, |
| 365 | + "description": "Create an project attachment" |
| 366 | + }, |
| 367 | + "response": [] |
| 368 | + }, |
| 369 | + { |
| 370 | + "name": "Download attachment - No access", |
| 371 | + "request": { |
| 372 | + "method": "GET", |
| 373 | + "header": [ |
| 374 | + { |
| 375 | + "key": "Authorization", |
| 376 | + "value": "Bearer {{jwt-token-copilot-40051332}}" |
| 377 | + }, |
| 378 | + { |
| 379 | + "key": "Content-Type", |
| 380 | + "value": "application/json" |
| 381 | + } |
| 382 | + ], |
| 383 | + "body": { |
| 384 | + "mode": "raw", |
| 385 | + "raw": "" |
| 386 | + }, |
| 387 | + "url": { |
| 388 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
| 389 | + "host": [ |
| 390 | + "{{api-url}}" |
| 391 | + ], |
| 392 | + "path": [ |
| 393 | + "v4", |
| 394 | + "projects", |
| 395 | + "1", |
| 396 | + "attachments", |
| 397 | + "2" |
| 398 | + ] |
| 399 | + }, |
| 400 | + "description": "Create an project attachment" |
| 401 | + }, |
| 402 | + "response": [] |
| 403 | + }, |
299 | 404 | {
|
300 | 405 | "name": "Update attachment",
|
301 | 406 | "request": {
|
|
315 | 420 | "raw": "{\n\t\"param\": {\n\t\t\"title\": \"first attachment submission updated\",\n\t\t\"description\": \"updated project attachment\"\n\t}\n}"
|
316 | 421 | },
|
317 | 422 | "url": {
|
318 |
| - "raw": "{{api-url}}/v4/projects/7/attachments/2", |
| 423 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
319 | 424 | "host": [
|
320 | 425 | "{{api-url}}"
|
321 | 426 | ],
|
322 | 427 | "path": [
|
323 | 428 | "v4",
|
324 | 429 | "projects",
|
325 |
| - "7", |
| 430 | + "1", |
| 431 | + "attachments", |
| 432 | + "2" |
| 433 | + ] |
| 434 | + }, |
| 435 | + "description": "Update project attachment" |
| 436 | + }, |
| 437 | + "response": [] |
| 438 | + }, |
| 439 | + { |
| 440 | + "name": "Update attachment - No access", |
| 441 | + "request": { |
| 442 | + "method": "PATCH", |
| 443 | + "header": [ |
| 444 | + { |
| 445 | + "key": "Authorization", |
| 446 | + "value": "Bearer {{jwt-token-copilot-40051332}}" |
| 447 | + }, |
| 448 | + { |
| 449 | + "key": "Content-Type", |
| 450 | + "value": "application/json" |
| 451 | + } |
| 452 | + ], |
| 453 | + "body": { |
| 454 | + "mode": "raw", |
| 455 | + "raw": "{\n\t\"param\": {\n\t\t\"title\": \"first attachment submission updated\",\n\t\t\"description\": \"updated project attachment\",\n\t\t\"allowedUsers\": null\n\t}\n}" |
| 456 | + }, |
| 457 | + "url": { |
| 458 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
| 459 | + "host": [ |
| 460 | + "{{api-url}}" |
| 461 | + ], |
| 462 | + "path": [ |
| 463 | + "v4", |
| 464 | + "projects", |
| 465 | + "1", |
326 | 466 | "attachments",
|
327 | 467 | "2"
|
328 | 468 | ]
|
|
365 | 505 | "description": "Delete a project attachment"
|
366 | 506 | },
|
367 | 507 | "response": []
|
| 508 | + }, |
| 509 | + { |
| 510 | + "name": "Delete attachment - No access", |
| 511 | + "request": { |
| 512 | + "method": "DELETE", |
| 513 | + "header": [ |
| 514 | + { |
| 515 | + "key": "Authorization", |
| 516 | + "value": "Bearer {{jwt-token-copilot-40051332}}" |
| 517 | + }, |
| 518 | + { |
| 519 | + "key": "Content-Type", |
| 520 | + "value": "application/json" |
| 521 | + } |
| 522 | + ], |
| 523 | + "body": { |
| 524 | + "mode": "raw", |
| 525 | + "raw": "" |
| 526 | + }, |
| 527 | + "url": { |
| 528 | + "raw": "{{api-url}}/v4/projects/1/attachments/2", |
| 529 | + "host": [ |
| 530 | + "{{api-url}}" |
| 531 | + ], |
| 532 | + "path": [ |
| 533 | + "v4", |
| 534 | + "projects", |
| 535 | + "1", |
| 536 | + "attachments", |
| 537 | + "2" |
| 538 | + ] |
| 539 | + }, |
| 540 | + "description": "Delete a project attachment" |
| 541 | + }, |
| 542 | + "response": [] |
368 | 543 | }
|
369 | 544 | ]
|
370 | 545 | },
|
|
1098 | 1273 | ],
|
1099 | 1274 | "body": {
|
1100 | 1275 | "mode": "raw",
|
1101 |
| - "raw": "{\n\t\"param\": {\n\t\t\"name\": \"test project\",\n\t\t\"description\": \"Hello I am a test project\",\n\t\t\"type\": \"generic\"\n\t}\n}" |
| 1276 | + "raw": "{\n \"param\": {\n \"name\": \"Test 3\",\n \"details\": {\n \"utm\": {\n \"code\": \"\"\n },\n \"appDefinition\": {\n \"primaryTarget\": \"phone\",\n \"goal\": {\n \"value\": \"Nothing\"\n },\n \"users\": {\n \"value\": \"No one\"\n },\n \"notes\": \"\"\n },\n \"hideDiscussions\": true\n },\n \"description\": \"Hello this is a sample description... This requires at least 160 characters. I'm trying to satisfy this condition. But I could n't if I don't type this unnecessary message\",\n \"templateId\": 3,\n \"type\": \"app\"\n }\n}" |
1102 | 1277 | },
|
1103 | 1278 | "url": {
|
1104 | 1279 | "raw": "{{api-url}}/v4/projects",
|
|
2240 | 2415 | ],
|
2241 | 2416 | "body": {
|
2242 | 2417 | "mode": "raw",
|
2243 |
| - "raw": "{\n\t\"param\": {\n\t\t\"name\": \"test project phase\",\n\t\t\"status\": \"active\",\n\t\t\"startDate\": \"2018-05-15T00:00:00\",\n\t\t\"endDate\": \"2018-05-16T00:00:00\",\n\t\t\"budget\": 20,\n\t\t\"details\": {\n\t\t\t\"aDetails\": \"a details\"\n\t\t}\n\t}\n}" |
| 2418 | + "raw": "{\n\t\"param\": {\n\t\t\"name\": \"test project phase\",\n\t\t\"status\": \"active\",\n\t\t\"startDate\": \"2019-02-15T00:00:00\",\n\t\t\"endDate\": \"2019-05-16T00:00:00\",\n\t\t\"budget\": 20,\n\t\t\"details\": {\n\t\t\t\"aDetails\": \"a details\"\n\t\t}\n\t}\n}" |
2244 | 2419 | },
|
2245 | 2420 | "url": {
|
2246 |
| - "raw": "{{api-url}}/v4/projects/1/phases", |
| 2421 | + "raw": "{{api-url}}/v4/projects/2/phases", |
2247 | 2422 | "host": [
|
2248 | 2423 | "{{api-url}}"
|
2249 | 2424 | ],
|
2250 | 2425 | "path": [
|
2251 | 2426 | "v4",
|
2252 | 2427 | "projects",
|
2253 |
| - "1", |
| 2428 | + "2", |
2254 | 2429 | "phases"
|
2255 | 2430 | ]
|
2256 | 2431 | }
|
|
2594 | 2769 | "raw": ""
|
2595 | 2770 | },
|
2596 | 2771 | "url": {
|
2597 |
| - "raw": "{{api-url}}/v4/projects/1/phases/3", |
| 2772 | + "raw": "{{api-url}}/v4/projects/1/phases/2", |
2598 | 2773 | "host": [
|
2599 | 2774 | "{{api-url}}"
|
2600 | 2775 | ],
|
|
2603 | 2778 | "projects",
|
2604 | 2779 | "1",
|
2605 | 2780 | "phases",
|
2606 |
| - "3" |
| 2781 | + "2" |
2607 | 2782 | ]
|
2608 | 2783 | }
|
2609 | 2784 | },
|
|
2630 | 2805 | ],
|
2631 | 2806 | "body": {
|
2632 | 2807 | "mode": "raw",
|
2633 |
| - "raw": "{\n\t\"param\": {\n\t\t\"name\": \"test phase product\",\n\t\t\"type\": \"type 1\",\n\t\t\"estimatedPrice\": 10\n\t}\n}" |
| 2808 | + "raw": "{\n\t\"param\": {\n\t\t\"name\": \"test phase product\",\n\t\t\"type\": \"application_development\",\n\t\t\"estimatedPrice\": 10000\n\t}\n}" |
2634 | 2809 | },
|
2635 | 2810 | "url": {
|
2636 | 2811 | "raw": "{{api-url}}/v4/projects/1/phases/1/products",
|
|
3147 | 3322 | ],
|
3148 | 3323 | "body": {
|
3149 | 3324 | "mode": "raw",
|
3150 |
| - "raw": "{\r\n \"param\":{\r\n \"key\": \"generic\",\r\n \"displayName\": \"new displayName\",\r\n \"icon\": \"http://example.com/icon4.ico\",\r\n \t\"question\": \"question 4\",\r\n \t\"info\": \"info 4\",\r\n \t\"aliases\": [\"key-41\", \"key_42\"],\r\n \t\"metadata\": {}\r\n }\r\n}" |
| 3325 | + "raw": "{\r\n \"param\":{\r\n \"key\": \"app\",\r\n \"displayName\": \"new displayName\",\r\n \"icon\": \"http://example.com/icon4.ico\",\r\n \t\"question\": \"question 4\",\r\n \t\"info\": \"info 4\",\r\n \t\"aliases\": [\"key-41\", \"key_42\"],\r\n \t\"metadata\": {}\r\n }\r\n}" |
3151 | 3326 | },
|
3152 | 3327 | "url": {
|
3153 | 3328 | "raw": "{{api-url}}/v4/projects/metadata/projectTypes",
|
|
3530 | 3705 | ],
|
3531 | 3706 | "body": {
|
3532 | 3707 | "mode": "raw",
|
3533 |
| - "raw": "{\r\n \"param\":{\r\n \"key\": \"generic\",\r\n \"displayName\": \"new displayName\",\r\n \"icon\": \"icon\",\r\n \"question\": \"question\",\r\n \"info\": \"info\",\r\n \"aliases\": [\"key-1\", \"key-2\"]\r\n }\r\n}" |
| 3708 | + "raw": "{\r\n \"param\":{\r\n \"key\": \"app\",\r\n \"displayName\": \"new displayName\",\r\n \"icon\": \"icon\",\r\n \"question\": \"question\",\r\n \"info\": \"info\",\r\n \"aliases\": [\"key-1\", \"key-2\"]\r\n }\r\n}" |
3534 | 3709 | },
|
3535 | 3710 | "url": {
|
3536 | 3711 | "raw": "{{api-url}}/v4/projects/metadata/productCategories",
|
|
3873 | 4048 | ],
|
3874 | 4049 | "body": {
|
3875 | 4050 | "mode": "raw",
|
3876 |
| - "raw": "{\r\n \"param\":{\r\n \"name\":\"new name\",\r\n \"description\":\"new description\",\r\n \"startDate\":\"2018-05-29T00:00:00.000Z\",\r\n \"endDate\": \"2018-05-30T00:00:00.000Z\",\r\n \"reference\": \"project\",\r\n \"referenceId\": 1\r\n }\r\n}" |
| 4051 | + "raw": "{\r\n \"param\":{\r\n \"name\":\"new name\",\r\n \"description\":\"new description\",\r\n \"startDate\":\"2019-02-29T00:00:00.000Z\",\r\n \"endDate\": \"2019-04-30T00:00:00.000Z\",\r\n \"reference\": \"project\",\r\n \"referenceId\": 1\r\n }\r\n}" |
3877 | 4052 | },
|
3878 | 4053 | "url": {
|
3879 | 4054 | "raw": "{{api-url}}/v4/timelines",
|
|
3904 | 4079 | ],
|
3905 | 4080 | "body": {
|
3906 | 4081 | "mode": "raw",
|
3907 |
| - "raw": "{\r\n \"param\":{\r\n \"name\":\"new name\",\r\n \"description\":\"new description\",\r\n \"startDate\":\"2018-05-29T00:00:00.000Z\",\r\n \"endDate\": \"2018-05-30T00:00:00.000Z\",\r\n \"reference\": \"project\",\r\n \"referenceId\": 1,\r\n \"templateId\": 1\r\n }\r\n}" |
| 4082 | + "raw": "{\r\n \"param\":{\r\n \"name\":\"new name\",\r\n \"description\":\"new description\",\r\n \"startDate\":\"2019-02-29T00:00:00.000Z\",\r\n \"endDate\": \"2019-04-30T00:00:00.000Z\",\r\n \"reference\": \"project\",\r\n \"referenceId\": 1,\r\n \"templateId\": 1\r\n }\r\n}" |
3908 | 4083 | },
|
3909 | 4084 | "url": {
|
3910 | 4085 | "raw": "{{api-url}}/v4/timelines",
|
|
0 commit comments