diff --git a/crc/api.yml b/crc/api.yml index bea7f284..c8d30305 100644 --- a/crc/api.yml +++ b/crc/api.yml @@ -941,6 +941,35 @@ paths: type: string format: binary example: '' + /dmn_from_ss: + parameters: + - name: workflow_spec_id + in: query + required: true + description: The unique id of a workflow specification + schema: + type: string + post: + operationId: crc.api.file.dmn_from_ss + summary: Create a DMN table from a spreadsheet + tags: + - Files + requestBody: + content: + multipart/form-data: + schema: + type: object + properties: + file: + type: string + format: binary + responses: + '200': + description: DMN file for workflow spec + content: + application/json: + schema: + $ref: "#/components/schemas/File" /task_events: parameters: - name: action diff --git a/crc/api/file.py b/crc/api/file.py index 118dccfc..a11ddb66 100644 --- a/crc/api/file.py +++ b/crc/api/file.py @@ -167,3 +167,7 @@ def update_file_info(file_id, body): def delete_file(file_id): FileService.delete_file(file_id) + + +def dmn_from_ss(workflow_spec_id): + pass