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