aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/openapi.json
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/openapi.json')
-rw-r--r--apps/files/openapi.json105
1 files changed, 83 insertions, 22 deletions
diff --git a/apps/files/openapi.json b/apps/files/openapi.json
index c9da18b0cd1..97c95cc29c0 100644
--- a/apps/files/openapi.json
+++ b/apps/files/openapi.json
@@ -100,28 +100,30 @@
}
},
"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"
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "id",
+ "basename",
+ "children"
+ ],
+ "properties": {
+ "id": {
+ "type": "integer",
+ "format": "int64"
+ },
+ "basename": {
+ "type": "string"
+ },
+ "displayName": {
+ "type": "string"
+ },
+ "children": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
}
}
}
@@ -1971,6 +1973,29 @@
"basic_auth": []
}
],
+ "requestBody": {
+ "required": false,
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "path": {
+ "type": "string",
+ "default": "/",
+ "description": "The path relative to the user folder"
+ },
+ "depth": {
+ "type": "integer",
+ "format": "int64",
+ "default": 1,
+ "description": "The depth of the tree"
+ }
+ }
+ }
+ }
+ }
+ },
"parameters": [
{
"name": "OCS-APIRequest",
@@ -2011,6 +2036,42 @@
}
}
}
+ },
+ "400": {
+ "description": "Invalid folder path",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "message"
+ ],
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ },
+ "404": {
+ "description": "Folder not found",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "message"
+ ],
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
}
}
}