diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-09-19 21:49:19 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-09-20 08:23:45 -0100 |
commit | b5dcd048ae85cfe8d7fb22663f1955efbdca7921 (patch) | |
tree | 0aba878eec4ee9222e4de538f229be908535cd3c /core/openapi.json | |
parent | c6c06d517cfe80f1a75c7eff2b66fb9cefea86d9 (diff) | |
download | nextcloud-server-b5dcd048ae85cfe8d7fb22663f1955efbdca7921.tar.gz nextcloud-server-b5dcd048ae85cfe8d7fb22663f1955efbdca7921.zip |
small fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'core/openapi.json')
-rw-r--r-- | core/openapi.json | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/core/openapi.json b/core/openapi.json index 3a67a076988..95fc7c2ff9f 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -1289,6 +1289,116 @@ } } }, + "/index.php/ocm-provider": { + "get": { + "operationId": "ocm-discovery", + "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php", + "tags": [ + "ocm" + ], + "security": [ + {}, + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "responses": { + "200": { + "description": "OCM Provider details returned", + "headers": { + "X-NEXTCLOUD-OCM-PROVIDERS": { + "schema": { + "type": "boolean" + } + } + }, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "enabled", + "apiVersion", + "endPoint", + "resourceTypes" + ], + "properties": { + "enabled": { + "type": "boolean" + }, + "apiVersion": { + "type": "string" + }, + "endPoint": { + "type": "string" + }, + "resourceTypes": { + "type": "object", + "required": [ + null + ], + "properties": { + "": { + "type": "object", + "required": [ + "name", + "shareTypes", + "protocols" + ], + "properties": { + "name": { + "type": "string" + }, + "shareTypes": { + "type": "array", + "items": { + "type": "string" + } + }, + "protocols": { + "type": "object", + "required": [ + "webdav" + ], + "properties": { + "webdav": { + "type": "string" + } + } + } + } + } + } + } + } + } + } + } + }, + "500": { + "description": "OCM not supported", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string" + } + } + } + } + } + } + } + } + }, "/ocs/v2.php/cloud/capabilities": { "get": { "operationId": "ocs-get-capabilities", |