Regenerate Swagger for public file GET and user branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 14:29:52 +05:00
parent 9c07439089
commit 2853bed2ec
3 changed files with 71 additions and 45 deletions

View File

@@ -1591,14 +1591,9 @@
}
}
},
"/file/{id}": {
"/file/{file_name}": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "download file",
"description": "download file by object name (public; not under /api/admin)",
"produces": [
"application/octet-stream"
],
@@ -1609,7 +1604,7 @@
{
"type": "string",
"description": "object name",
"name": "id",
"name": "file_name",
"in": "path",
"required": true
}
@@ -1621,6 +1616,18 @@
"type": "file"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/appresult.AppError"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
@@ -1628,7 +1635,9 @@
}
}
}
},
}
},
"/file/{id}": {
"delete": {
"security": [
{
@@ -5551,7 +5560,7 @@
"BearerAuth": []
}
],
"description": "Returns a single user",
"description": "Returns a single user with assigned branches",
"produces": [
"application/json"
],