diff options
Diffstat (limited to 'apps/files/openapi.json')
-rw-r--r-- | apps/files/openapi.json | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/apps/files/openapi.json b/apps/files/openapi.json index e93c4d2807a..c9da18b0cd1 100644 --- a/apps/files/openapi.json +++ b/apps/files/openapi.json @@ -99,6 +99,33 @@ } } }, + "FolderTree": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/FolderTreeNode" + } + }, + "FolderTreeNode": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "displayName": { + "type": "string" + }, + "children": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, "OCSMeta": { "type": "object", "required": [ @@ -1928,6 +1955,65 @@ } } } + }, + "/ocs/v2.php/apps/files/api/v1/folder-tree": { + "get": { + "operationId": "api-get-folder-tree", + "summary": "Returns the folder tree of the user", + "tags": [ + "api" + ], + "security": [ + { + "bearer_auth": [] + }, + { + "basic_auth": [] + } + ], + "parameters": [ + { + "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": "Folder tree returned successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FolderTree" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "message" + ], + "properties": { + "message": { + "type": "string" + } + } + } + } + } + } + } + } } }, "tags": [] |