Skip to content

Commit

Permalink
openapi: updated reana-server workspaces endpoint specification
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Sep 14, 2021
1 parent 6e3a64d commit 3ca6146
Showing 1 changed file with 39 additions and 46 deletions.
85 changes: 39 additions & 46 deletions reana_commons/openapi_specifications/reana_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,52 +272,6 @@
"summary": "Ping the server (healthcheck)"
}
},
"/api/workspaces": {
"get":{
"consumes": [
"application/json"
],
"description": "Get the list of available workspaces.",
"operationId": "workspaces",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "This resource reports the available workspaces in the cluster.",
"examples": {
"application/json": {
"workspaces_available": ["/usr/share","/eos/home","/var/reana"],
"default": "/usr/share"
}
},
"schema": {
"properties": {
"workspaces_available": {
"type": "array",
"items": {
"type":"string"
}
},
"default": {
"type": "string"
}
},
"type": "object"
}
},
"500": {
"description": "Request failed. Internal server error.",
"examples": {
"application/json": {
"message": "Internal server error."
}
}
}
},
"summary": "Get the list of available workspaces."
}
},
"/api/secrets": {
"get": {
"description": "Get user secrets.",
Expand Down Expand Up @@ -2537,6 +2491,45 @@
"summary": "Returns the requested file."
}
},
"/api/workspaces": {
"get": {
"description": "This resource reports the available workspaces in the cluster.",
"operationId": "workspaces",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Request succeeded. The response contains the list of all workspaces.",
"examples": {
"application/json": {
"default": "/usr/share",
"workspaces_available": [
"/usr/share",
"/eos/home",
"/var/reana"
]
}
},
"schema": {
"properties": {
"workspaces_available": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"500": {
"description": "Request failed. Internal controller error."
}
},
"summary": "Get the list of available workspaces."
}
},
"/api/you": {
"get": {
"description": "This resource provides basic information about an authenticated user based on the session cookie presence.",
Expand Down

0 comments on commit 3ca6146

Please sign in to comment.