|
112 | 112 | "type": "string" |
113 | 113 | } |
114 | 114 | ], |
115 | | - "produces": [ |
116 | | - "application/json" |
117 | | - ], |
| 115 | + "produces": ["application/json"], |
118 | 116 | "responses": { |
119 | 117 | "200": { |
120 | 118 | "description": "Requests succeeded. The response contains the current workflows for a given user.", |
|
324 | 322 | } |
325 | 323 | } |
326 | 324 | ], |
327 | | - "produces": [ |
328 | | - "application/json" |
329 | | - ], |
| 325 | + "produces": ["application/json"], |
330 | 326 | "responses": { |
331 | 327 | "201": { |
332 | 328 | "description": "Request succeeded. The workflow has been created along with its workspace", |
|
369 | 365 | }, |
370 | 366 | "/api/workflows/move_files/{workflow_id_or_name}": { |
371 | 367 | "put": { |
372 | | - "consumes": [ |
373 | | - "application/json" |
374 | | - ], |
| 368 | + "consumes": ["application/json"], |
375 | 369 | "description": "This resource moves files within the workspace. Resource is expecting a workflow UUID.", |
376 | 370 | "operationId": "move_files", |
377 | 371 | "parameters": [ |
|
404 | 398 | "type": "string" |
405 | 399 | } |
406 | 400 | ], |
407 | | - "produces": [ |
408 | | - "application/json" |
409 | | - ], |
| 401 | + "produces": ["application/json"], |
410 | 402 | "responses": { |
411 | 403 | "200": { |
412 | 404 | "description": "Request succeeded. Message about successfully moved files is returned.", |
|
506 | 498 | "type": "string" |
507 | 499 | } |
508 | 500 | ], |
509 | | - "produces": [ |
510 | | - "application/json" |
511 | | - ], |
| 501 | + "produces": ["application/json"], |
512 | 502 | "responses": { |
513 | 503 | "200": { |
514 | 504 | "description": "Request succeeded. Info about a workflow, including the status is returned.", |
515 | 505 | "examples": { |
516 | 506 | "application/json": { |
517 | | - "reana_specification": [ |
518 | | - "- nevents: 100000\n+ nevents: 200000" |
519 | | - ], |
| 507 | + "reana_specification": ["- nevents: 100000\n+ nevents: 200000"], |
520 | 508 | "workspace_listing": { |
521 | 509 | "Only in workspace a: code": null |
522 | 510 | } |
|
567 | 555 | }, |
568 | 556 | "/api/workflows/{workflow_id_or_name}/close": { |
569 | 557 | "post": { |
570 | | - "consumes": [ |
571 | | - "application/json" |
572 | | - ], |
| 558 | + "consumes": ["application/json"], |
573 | 559 | "description": "This resource is expecting a workflow to close an interactive session within its workspace.", |
574 | 560 | "operationId": "close_interactive_session", |
575 | 561 | "parameters": [ |
|
588 | 574 | "type": "string" |
589 | 575 | } |
590 | 576 | ], |
591 | | - "produces": [ |
592 | | - "application/json" |
593 | | - ], |
| 577 | + "produces": ["application/json"], |
594 | 578 | "responses": { |
595 | 579 | "200": { |
596 | 580 | "description": "Request succeeded. The interactive session has been closed.", |
|
679 | 663 | "type": "integer" |
680 | 664 | } |
681 | 665 | ], |
682 | | - "produces": [ |
683 | | - "application/json" |
684 | | - ], |
| 666 | + "produces": ["application/json"], |
685 | 667 | "responses": { |
686 | 668 | "200": { |
687 | 669 | "description": "Request succeeded. Info about workflow, including the status is returned.", |
|
740 | 722 | }, |
741 | 723 | "/api/workflows/{workflow_id_or_name}/open/{interactive_session_type}": { |
742 | 724 | "post": { |
743 | | - "consumes": [ |
744 | | - "application/json" |
745 | | - ], |
| 725 | + "consumes": ["application/json"], |
746 | 726 | "description": "This resource is expecting a workflow to start an interactive session within its workspace.", |
747 | 727 | "operationId": "open_interactive_session", |
748 | 728 | "parameters": [ |
|
783 | 763 | } |
784 | 764 | } |
785 | 765 | ], |
786 | | - "produces": [ |
787 | | - "application/json" |
788 | | - ], |
| 766 | + "produces": ["application/json"], |
789 | 767 | "responses": { |
790 | 768 | "200": { |
791 | 769 | "description": "Request succeeded. The interactive session has been opened.", |
|
846 | 824 | "type": "string" |
847 | 825 | } |
848 | 826 | ], |
849 | | - "produces": [ |
850 | | - "application/json" |
851 | | - ], |
| 827 | + "produces": ["application/json"], |
852 | 828 | "responses": { |
853 | 829 | "200": { |
854 | 830 | "description": "Request succeeded. Workflow input parameters, including the status are returned.", |
|
934 | 910 | "type": "string" |
935 | 911 | } |
936 | 912 | ], |
937 | | - "produces": [ |
938 | | - "application/json" |
939 | | - ], |
| 913 | + "produces": ["application/json"], |
940 | 914 | "responses": { |
941 | 915 | "200": { |
942 | 916 | "description": "Request succeeded. The response contains the list of all the retention rules.", |
|
1066 | 1040 | "type": "string" |
1067 | 1041 | } |
1068 | 1042 | }, |
1069 | | - "required": [ |
1070 | | - "user_email_to_share_with" |
1071 | | - ], |
| 1043 | + "required": ["user_email_to_share_with"], |
1072 | 1044 | "type": "object" |
1073 | 1045 | } |
1074 | 1046 | } |
1075 | 1047 | ], |
1076 | | - "produces": [ |
1077 | | - "application/json" |
1078 | | - ], |
| 1048 | + "produces": ["application/json"], |
1079 | 1049 | "responses": { |
1080 | 1050 | "200": { |
1081 | 1051 | "description": "Request succeeded. The workflow has been shared with the user.", |
|
1152 | 1122 | "type": "string" |
1153 | 1123 | } |
1154 | 1124 | ], |
1155 | | - "produces": [ |
1156 | | - "application/json" |
1157 | | - ], |
| 1125 | + "produces": ["application/json"], |
1158 | 1126 | "responses": { |
1159 | 1127 | "200": { |
1160 | 1128 | "description": "Request succeeded. The response contains the share status of the workflow.", |
|
1253 | 1221 | "type": "string" |
1254 | 1222 | } |
1255 | 1223 | ], |
1256 | | - "produces": [ |
1257 | | - "application/json" |
1258 | | - ], |
| 1224 | + "produces": ["application/json"], |
1259 | 1225 | "responses": { |
1260 | 1226 | "200": { |
1261 | 1227 | "description": "Request succeeded. Info about workflow, including the status is returned.", |
|
1345 | 1311 | }, |
1346 | 1312 | { |
1347 | 1313 | "description": "Required. New status.", |
1348 | | - "enum": [ |
1349 | | - "start", |
1350 | | - "stop", |
1351 | | - "deleted" |
1352 | | - ], |
| 1314 | + "enum": ["start", "stop", "deleted"], |
1353 | 1315 | "in": "query", |
1354 | 1316 | "name": "status", |
1355 | 1317 | "required": true, |
|
1387 | 1349 | } |
1388 | 1350 | } |
1389 | 1351 | ], |
1390 | | - "produces": [ |
1391 | | - "application/json" |
1392 | | - ], |
| 1352 | + "produces": ["application/json"], |
1393 | 1353 | "responses": { |
1394 | 1354 | "200": { |
1395 | 1355 | "description": "Request succeeded. Info about workflow, including the status is returned.", |
|
1505 | 1465 | "type": "string" |
1506 | 1466 | } |
1507 | 1467 | ], |
1508 | | - "produces": [ |
1509 | | - "application/json" |
1510 | | - ], |
| 1468 | + "produces": ["application/json"], |
1511 | 1469 | "responses": { |
1512 | 1470 | "200": { |
1513 | 1471 | "description": "Request succeeded. The workflow has been unshared with the user.", |
|
1665 | 1623 | "type": "string" |
1666 | 1624 | } |
1667 | 1625 | ], |
1668 | | - "produces": [ |
1669 | | - "multipart/form-data" |
1670 | | - ], |
| 1626 | + "produces": ["multipart/form-data"], |
1671 | 1627 | "responses": { |
1672 | 1628 | "200": { |
1673 | 1629 | "description": "Requests succeeded. The list of code|input|output files has been retrieved.", |
|
1728 | 1684 | "summary": "Returns the workspace file list." |
1729 | 1685 | }, |
1730 | 1686 | "post": { |
1731 | | - "consumes": [ |
1732 | | - "application/octet-stream" |
1733 | | - ], |
| 1687 | + "consumes": ["application/octet-stream"], |
1734 | 1688 | "description": "This resource is expecting a workflow UUID and a file to place in the workspace.", |
1735 | 1689 | "operationId": "upload_file", |
1736 | 1690 | "parameters": [ |
|
1765 | 1719 | "type": "string" |
1766 | 1720 | } |
1767 | 1721 | ], |
1768 | | - "produces": [ |
1769 | | - "application/json" |
1770 | | - ], |
| 1722 | + "produces": ["application/json"], |
1771 | 1723 | "responses": { |
1772 | 1724 | "200": { |
1773 | 1725 | "description": "Request succeeded. The file has been added to the workspace.", |
|
1838 | 1790 | "type": "string" |
1839 | 1791 | } |
1840 | 1792 | ], |
1841 | | - "produces": [ |
1842 | | - "application/json" |
1843 | | - ], |
| 1793 | + "produces": ["application/json"], |
1844 | 1794 | "responses": { |
1845 | 1795 | "200": { |
1846 | 1796 | "description": "Request succeeded. Details about deleted files and failed deletions are returned.", |
|
0 commit comments