Cleaning up swagger docs.

This commit is contained in:
Dan Funk 2020-03-05 17:10:00 -05:00
parent bb3f0dc128
commit e501fb31fd
1 changed files with 18 additions and 15 deletions

View File

@ -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: