Skip to content

Commit

Permalink
Merge cc3d0df into 4637be7
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego committed Jul 26, 2017
2 parents 4637be7 + cc3d0df commit 380a6a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
18 changes: 2 additions & 16 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,11 @@
"type": "string"
},
{
"description": "Specification with necessary data to instantiate a yadage workflow.",
"description": "Workflow specification with necessary data to instantiate a yadage workflow.",
"in": "body",
"name": "yadage_payload",
"name": "workflow",
"required": true,
"schema": {
"properties": {
"nparallel": {
"type": "integer"
},
"preset_pars": {
"type": "object"
},
"toplevel": {
"type": "string"
},
"workflow": {
"type": "string"
}
},
"type": "object"
}
}
Expand Down
16 changes: 4 additions & 12 deletions reana_workflow_controller/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,22 +173,13 @@ def yadage_endpoint(): # noqa
description: Required. UUID of workflow owner.
required: true
type: string
- name: yadage_payload
- name: workflow
in: body
description: Specification with necessary data to instantiate a
yadage workflow.
description: Workflow specification with necessary data to
instantiate a yadage workflow.
required: true
schema:
type: object
properties:
toplevel:
type: string
workflow:
type: string
nparallel:
type: integer
preset_pars:
type: object
responses:
200:
description: >-
Expand All @@ -212,6 +203,7 @@ def yadage_endpoint(): # noqa
"""
try:
if request.json:
# validate request and change parameter names in RWEY
queue = organization_to_queue[request.args.get('organization')]
resultobject = run_yadage_workflow.apply_async(
args=[request.json],
Expand Down

0 comments on commit 380a6a5

Please sign in to comment.