diff --git a/core/openapi-administration.json b/core/openapi-administration.json index 569b6f9e421..80a698fe9f8 100644 --- a/core/openapi-administration.json +++ b/core/openapi-administration.json @@ -70,6 +70,9 @@ "type": "string" } } + }, + "can-create-app-token": { + "type": "boolean" } } } diff --git a/core/openapi-ex_app.json b/core/openapi-ex_app.json index 891fe08bb4a..f2dcf97cf34 100644 --- a/core/openapi-ex_app.json +++ b/core/openapi-ex_app.json @@ -70,6 +70,9 @@ "type": "string" } } + }, + "can-create-app-token": { + "type": "boolean" } } } diff --git a/core/openapi-full.json b/core/openapi-full.json index 1b8efcda87f..b5bf508a701 100644 --- a/core/openapi-full.json +++ b/core/openapi-full.json @@ -136,6 +136,9 @@ "type": "string" } } + }, + "can-create-app-token": { + "type": "boolean" } } } @@ -1749,6 +1752,139 @@ } } }, + "/ocs/v2.php/core/getapppassword-onetime": { + "get": { + "operationId": "app_password-get-app-password-with-one-time-password", + "summary": "Get app password with one-time password", + "description": "This endpoint requires password confirmation", + "tags": [ + "app_password" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "user-agent", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "App password returned", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "apppassword" + ], + "properties": { + "apppassword": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "403": { + "description": "Creating app password is not allowed", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + }, + "401": { + "description": "Current user is not logged in", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + } + } + } + }, "/ocs/v2.php/core/autocomplete/get": { "get": { "operationId": "auto_complete-get", diff --git a/core/openapi.json b/core/openapi.json index 11d0318c837..19c0d9eb43b 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -136,6 +136,9 @@ "type": "string" } } + }, + "can-create-app-token": { + "type": "boolean" } } } @@ -1749,6 +1752,139 @@ } } }, + "/ocs/v2.php/core/getapppassword-onetime": { + "get": { + "operationId": "app_password-get-app-password-with-one-time-password", + "summary": "Get app password with one-time password", + "description": "This endpoint requires password confirmation", + "tags": [ + "app_password" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "user-agent", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "App password returned", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "apppassword" + ], + "properties": { + "apppassword": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "403": { + "description": "Creating app password is not allowed", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + }, + "401": { + "description": "Current user is not logged in", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + } + } + } + }, "/ocs/v2.php/core/autocomplete/get": { "get": { "operationId": "auto_complete-get", diff --git a/openapi.json b/openapi.json index 768f2793859..5549bebf1f7 100644 --- a/openapi.json +++ b/openapi.json @@ -182,6 +182,9 @@ "type": "string" } } + }, + "can-create-app-token": { + "type": "boolean" } } } @@ -5249,6 +5252,139 @@ } } }, + "/ocs/v2.php/core/getapppassword-onetime": { + "get": { + "operationId": "core-app_password-get-app-password-with-one-time-password", + "summary": "Get app password with one-time password", + "description": "This endpoint requires password confirmation", + "tags": [ + "core/app_password" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "name": "user-agent", + "in": "header", + "schema": { + "type": "string" + } + }, + { + "name": "OCS-APIRequest", + "in": "header", + "description": "Required to be true for the API request to pass", + "required": true, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "description": "App password returned", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": { + "type": "object", + "required": [ + "apppassword" + ], + "properties": { + "apppassword": { + "type": "string" + } + } + } + } + } + } + } + } + } + }, + "403": { + "description": "Creating app password is not allowed", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + }, + "401": { + "description": "Current user is not logged in", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "ocs" + ], + "properties": { + "ocs": { + "type": "object", + "required": [ + "meta", + "data" + ], + "properties": { + "meta": { + "$ref": "#/components/schemas/OCSMeta" + }, + "data": {} + } + } + } + } + } + } + } + } + } + }, "/ocs/v2.php/core/autocomplete/get": { "get": { "operationId": "core-auto_complete-get",