Skip to content

Commit

Permalink
Merge 7ad1909 into 2f4a6bd
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidalgarcia committed May 1, 2020
2 parents 2f4a6bd + 7ad1909 commit df5567e
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 9 deletions.
97 changes: 89 additions & 8 deletions reana_commons/openapi_specifications/reana_server.json
Expand Up @@ -243,16 +243,28 @@
"examples": {
"application/json": {
"email": "user@reana.info",
"reana_token": "Drmhze6EPcv0fN_81Bj-nA"
"full_name": "John Doe",
"reana_token": "Drmhze6EPcv0fN_81Bj-nA",
"reana_token_status": "active",
"username": "jdoe"
}
},
"schema": {
"properties": {
"email": {
"type": "string"
},
"full_name": {
"type": "string"
},
"reana_token": {
"type": "string"
},
"reana_token_status": {
"type": "string"
},
"username": {
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -579,6 +591,75 @@
"summary": "Add user secrets to REANA."
}
},
"/api/token": {
"put": {
"description": "This resource allows the user to create an empty REANA access token and mark it as requested.",
"operationId": "request_token",
"parameters": [
{
"description": "API access_token of user.",
"in": "query",
"name": "access_token",
"required": false,
"type": "string"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "User information correspoding to the session cookie sent in the request.",
"examples": {
"application/json": {
"reana_token_status": "requested"
}
},
"schema": {
"properties": {
"reana_token_status": {
"type": "string"
}
},
"type": "object"
}
},
"401": {
"description": "Error message indicating that the uses is not authenticated.",
"examples": {
"application/json": {
"error": "User not logged in"
}
},
"schema": {
"properties": {
"error": {
"type": "string"
}
},
"type": "object"
}
},
"403": {
"description": "Request failed. User token not valid.",
"examples": {
"application/json": {
"message": "Token is not valid."
}
}
},
"500": {
"description": "Request failed. Internal server error.",
"examples": {
"application/json": {
"message": "Internal server error."
}
}
}
},
"summary": "Requests a new access token for the authenticated user."
}
},
"/api/users": {
"get": {
"description": "Get user information.",
Expand Down Expand Up @@ -2175,6 +2256,13 @@
"name": "access_token",
"required": false,
"type": "string"
},
{
"description": "Optional flag to return a previewable response of the file (corresponding mime-type).",
"in": "query",
"name": "preview",
"required": false,
"type": "boolean"
}
],
"produces": [
Expand Down Expand Up @@ -2311,13 +2399,6 @@
"name": "access_token",
"required": false,
"type": "string"
},
{
"description": "Optional flag to return a previewable response of the file (corresponding mime-type).",
"in": "query",
"name": "preview",
"required": false,
"type": "boolean"
}
],
"produces": [
Expand Down
2 changes: 1 addition & 1 deletion reana_commons/version.py
Expand Up @@ -14,4 +14,4 @@

from __future__ import absolute_import, print_function

__version__ = "0.7.0.dev20200429"
__version__ = "0.7.0.dev20200501"

0 comments on commit df5567e

Please sign in to comment.