From 19e0caa700ff2883bcf9afb28b3969bdab5fba36 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 11 Aug 2021 08:55:10 -0400 Subject: [PATCH] API endpoint for creating a DMN table from a spreadsheet --- crc/api.yml | 29 +++++++++++++++++++++++++++++ crc/api/file.py | 4 ++++ 2 files changed, 33 insertions(+) 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