Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
359 changes: 359 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,203 @@
},
"type": "object"
},
"FileEntry": {
"additionalProperties": false,
"properties": {
"dir": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"mtime": {
"type": "string"
},
"name": {
"type": "string"
},
"size_bytes": {
"format": "int64",
"type": "integer"
}
},
"required": [
"name",
"dir",
"size_bytes",
"mtime",
"hidden"
],
"type": "object"
},
"FileLocation": {
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
},
"root": {
"type": "string"
}
},
"required": [
"root",
"path"
],
"type": "object"
},
"Files-copyRequest": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/Files-copyRequest.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"from": {
"$ref": "#/components/schemas/FileLocation"
},
"to": {
"$ref": "#/components/schemas/FileLocation"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"Files-deleteRequest": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/Files-deleteRequest.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"path": {
"type": "string"
},
"root": {
"type": "string"
}
},
"required": [
"root",
"path"
],
"type": "object"
},
"Files-listRequest": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/Files-listRequest.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"path": {
"type": "string"
},
"root": {
"type": "string"
}
},
"required": [
"root",
"path"
],
"type": "object"
},
"Files-mkdirRequest": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/Files-mkdirRequest.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"path": {
"type": "string"
},
"root": {
"type": "string"
}
},
"required": [
"root",
"path"
],
"type": "object"
},
"Files-moveRequest": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/Files-moveRequest.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"from": {
"$ref": "#/components/schemas/FileLocation"
},
"to": {
"$ref": "#/components/schemas/FileLocation"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"FilesListResponse": {
"additionalProperties": false,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
"examples": [
"https://example.com/schemas/FilesListResponse.json"
],
"format": "uri",
"readOnly": true,
"type": "string"
},
"entries": {
"items": {
"$ref": "#/components/schemas/FileEntry"
},
"type": [
"array",
"null"
]
}
},
"required": [
"entries"
],
"type": "object"
},
"FolderElection": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -3261,6 +3458,168 @@
"summary": "Permission/scope plan for installing a catalog app"
}
},
"/api/v1/files/copy": {
"post": {
"operationId": "files-copy",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Files-copyRequest"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "No Content"
},
"default": {
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Error"
}
},
"summary": "Copy a file or folder"
}
},
"/api/v1/files/delete": {
"post": {
"operationId": "files-delete",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Files-deleteRequest"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "No Content"
},
"default": {
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Error"
}
},
"summary": "Delete a file or folder"
}
},
"/api/v1/files/list": {
"post": {
"operationId": "files-list",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Files-listRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FilesListResponse"
}
}
},
"description": "OK"
},
"default": {
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Error"
}
},
"summary": "List a directory in the file manager"
}
},
"/api/v1/files/mkdir": {
"post": {
"operationId": "files-mkdir",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Files-mkdirRequest"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "No Content"
},
"default": {
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Error"
}
},
"summary": "Create a folder"
}
},
"/api/v1/files/move": {
"post": {
"operationId": "files-move",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Files-moveRequest"
}
}
},
"required": true
},
"responses": {
"204": {
"description": "No Content"
},
"default": {
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ErrorModel"
}
}
},
"description": "Error"
}
},
"summary": "Move or rename a file or folder"
}
},
"/api/v1/health": {
"get": {
"operationId": "list-health-issues",
Expand Down
Loading