Skip to content

Commit

Permalink
api: fix OpenAPI spec for create workflow endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
  • Loading branch information
Diego Rodriguez committed Oct 31, 2017
1 parent c058fee commit 5ddae3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
"application/json"
],
"responses": {
"200": {
"description": "Request succeeded. The file has been added to the workspace.",
"201": {
"description": "Request succeeded. The workflow has been created along with its workspace",
"examples": {
"application/json": {
"message": "Workflow workspace has been created.",
Expand Down
5 changes: 3 additions & 2 deletions reana_workflow_controller/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ def create_workflow(): # noqa
type: string
description: Workflow type.
responses:
200:
201:
description: >-
Request succeeded. The file has been added to the workspace.
Request succeeded. The workflow has been created along
with its workspace
schema:
type: object
properties:
Expand Down

0 comments on commit 5ddae3e

Please sign in to comment.