From e501fb31fdd00cb70d959e209dfe2c86fa9c502c Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Thu, 5 Mar 2020 17:10:00 -0500 Subject: [PATCH] Cleaning up swagger docs. --- crc/api.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/crc/api.yml b/crc/api.yml index 65fc5f70..09cdc5a3 100644 --- a/crc/api.yml +++ b/crc/api.yml @@ -804,31 +804,34 @@ components: status: type: enum enum: ['new','user_input_required','waiting','complete'] - last_task: - $ref: "#/components/schemas/Task" - next_task: - $ref: "#/components/schemas/Task" user_tasks: type: array items: $ref: "#/components/schemas/Task" + last_task: + $ref: "#/components/schemas/Task" + next_task: + $ref: "#/components/schemas/Task" workflow_spec_id: type: string + spec_version: + type: string + is_latest_spec: + type: boolean example: id: 291234 status: 'user_input_required' - current_task_ids: ['study_identification','Detailed Reports'] - workflow_spec: - id: 'prot_def' - display_name: 'Protocol Definition' - description: 'Collect some additional information about your protocol to complete forms and processes.' - bpmn_url: 'https://crconnect.viriginia.edu/prot_def.bpmn' - svg_url: 'https://crconnect.viriginia.edu/prot_def.svg' - messages: [ - "Protocol Builder reports that the protocol process is complete for this study.", - "IDS Submission Template was generated successfully." - ] + workflow_spec_id: 'random_fact' + spec_version: 'v1.1 [22,23]' + is_latest_spec: True + next_task: + id: study_identification + name: Study Identification + title: IRB Review + documentation: "# Heading 1\n\nMarkdown documentation text goes here" + type: form + state: ready Task: properties: id: