diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-09-22 17:25:33 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-09-22 17:26:02 -0100 |
commit | 0fac750bcd5eccc65f2861a3bb7633912fb30039 (patch) | |
tree | ab6497eca13125d5e579bc77b2315bf727506589 /core/openapi.json | |
parent | 0acad69840ff21a103f532548907e480fc5a982a (diff) | |
download | nextcloud-server-0fac750bcd5eccc65f2861a3bb7633912fb30039.tar.gz nextcloud-server-0fac750bcd5eccc65f2861a3bb7633912fb30039.zip |
ocm services
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'core/openapi.json')
-rw-r--r-- | core/openapi.json | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/core/openapi.json b/core/openapi.json index 06e0047a190..fdc4bd3e6b8 100644 --- a/core/openapi.json +++ b/core/openapi.json @@ -1275,6 +1275,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", @@ -4329,6 +4439,10 @@ { "name": "guest_avatar", "description": "This controller handles guest avatar requests." + }, + { + "name": "ocm", + "description": "Controller about the endpoint /ocm-provider/" } ] }
\ No newline at end of file |