Skip to content

Commit

Permalink
feat(openapi): update specs after rebase (reanahub#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Aug 20, 2024
1 parent 3fa0e5c commit b9a859f
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 203 deletions.
198 changes: 108 additions & 90 deletions reana_commons/openapi_specifications/reana_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
"info": {
"description": "Submit workflows to be run on REANA Cloud",
"title": "REANA Server",
"version": "0.9.1"
"version": "0.95.0a1"
},
"paths": {
"/account/settings/linkedaccounts/": {},
"/account/settings/linkedaccounts/static/{filename}": {},
"/account/settings/login": {},
"/account/settings/security/": {},
"/account/settings/sessions/revoke/": {},
"/account/settings/static/{filename}": {},
"/api/config": {
"get": {
"description": "This resource provides configuration needed by Reana-UI.",
Expand Down Expand Up @@ -148,12 +144,87 @@
"get": {
"description": "Retrieve projects from GitLab.",
"operationId": "gitlab_projects",
"parameters": [
{
"description": "The API access_token of the current user.",
"in": "query",
"name": "access_token",
"required": false,
"type": "string"
},
{
"description": "The search string to filter the project list.",
"in": "query",
"name": "search",
"required": false,
"type": "string"
},
{
"description": "Results page number (pagination).",
"in": "query",
"name": "page",
"required": false,
"type": "integer"
},
{
"description": "Number of results per page (pagination).",
"in": "query",
"name": "size",
"required": false,
"type": "integer"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "This resource return all projects owned by the user on GitLab in JSON format."
"description": "This resource return all projects owned by the user on GitLab in JSON format.",
"schema": {
"properties": {
"has_next": {
"type": "boolean"
},
"has_prev": {
"type": "boolean"
},
"items": {
"items": {
"properties": {
"hook_id": {
"type": "integer",
"x-nullable": true
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"page": {
"type": "integer"
},
"size": {
"type": "integer"
},
"total": {
"type": "integer",
"x-nullable": true
}
},
"type": "object"
}
},
"403": {
"description": "Request failed. User token not valid.",
Expand Down Expand Up @@ -3229,25 +3300,30 @@
"type": "string"
},
{
"description": "Required. User to share the workflow with.",
"in": "query",
"name": "user_email_to_share_with",
"description": "JSON object with details of the share.",
"in": "body",
"name": "share_details",
"required": true,
"type": "string"
},
{
"description": "Optional. Message to include when sharing the workflow.",
"in": "query",
"name": "message",
"required": false,
"type": "string"
},
{
"description": "Optional. Date when access to the workflow will expire (format YYYY-MM-DD).",
"in": "query",
"name": "valid_until",
"required": false,
"type": "string"
"schema": {
"properties": {
"message": {
"description": "Optional. Message to include when sharing the workflow.",
"type": "string"
},
"user_email_to_share_with": {
"description": "User to share the workflow with.",
"type": "string"
},
"valid_until": {
"description": "Optional. Date when access to the workflow will expire (format YYYY-MM-DD).",
"type": "string"
}
},
"required": [
"user_email_to_share_with"
],
"type": "object"
}
}
],
"produces": [
Expand Down Expand Up @@ -3279,23 +3355,17 @@
}
},
"400": {
"description": "Request failed. The incoming data specification seems malformed.",
"description": "Request failed. The incoming data seems malformed."
},
"401": {
"description": "Request failed. User not signed in.",
"examples": {
"application/json": {
"errors": [
"Missing data for required field."
],
"message": "Malformed request."
"message": "User not signed in."
}
},
"schema": {
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"message": {
"type": "string"
}
Expand All @@ -3304,12 +3374,10 @@
}
},
"403": {
"description": "Request failed. User is not allowed to share the workflow.",
"description": "Request failed. Credentials are invalid or revoked.",
"examples": {
"application/json": {
"errors": [
"User is not allowed to share the workflow."
]
"message": "Token not valid."
}
},
"schema": {
Expand All @@ -3325,75 +3393,24 @@
"description": "Request failed. Workflow does not exist or user does not exist.",
"examples": {
"application/json": {
"errors": [
"Workflow cdcf48b1-c2f3-4693-8230-b066e088c6ac does not exist"
],
"message": "Workflow cdcf48b1-c2f3-4693-8230-b066e088c6ac does not exist"
}
},
"schema": {
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"message": {
"type": "string"
}
},
"type": "object"
}
},
"409": {
"description": "Request failed. The workflow is already shared with the user.",
"examples": {
"application/json": {
"errors": [
"The workflow is already shared with the user."
],
"message": "The workflow is already shared with the user."
}
},
"schema": {
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"message": {
"type": "string"
}
},
"type": "object"
}
},
"500": {
"description": "Request failed. Internal controller error.",
"examples": {
"application/json": {
"errors": [
"Internal controller error."
],
"message": "Internal controller error."
}
},
"schema": {
"properties": {
"errors": {
"items": {
"type": "string"
},
"type": "array"
},
"message": {
"type": "string"
}
},
"type": "object"
}
}
},
Expand Down Expand Up @@ -5212,6 +5229,7 @@
"/oauth/disconnect/{remote_app}/": {},
"/oauth/login": {},
"/oauth/login/{remote_app}/": {},
"/oauth/logout": {},
"/oauth/signup/{remote_app}/": {},
"/oauth/static/{filename}": {},
"/signin": {},
Expand Down
Loading

0 comments on commit b9a859f

Please sign in to comment.