feat: new storage endpoint folder size

This commit is contained in:
Methapon2001 2023-12-15 11:11:41 +07:00
parent 63314abedb
commit 6a5ccc09a5
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 100 additions and 1 deletions

View file

@ -2197,6 +2197,54 @@
}
}
},
"/storage/folder/size": {
"post": {
"operationId": "FolderSize",
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"properties": {
"size": {
"type": "number",
"format": "double"
}
},
"required": [
"size"
],
"type": "object"
}
}
}
}
},
"tags": [
"Storage Folder"
],
"security": [
{
"bearerAuth": [
"management-role",
"admin"
]
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FolderBody"
}
}
}
}
}
},
"/storage/file": {
"post": {
"operationId": "PostFile",