Regenerate Swagger for public file GET and user branches.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
29
docs/docs.go
29
docs/docs.go
@@ -1597,14 +1597,9 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/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"
|
||||
],
|
||||
@@ -1615,7 +1610,7 @@ const docTemplate = `{
|
||||
{
|
||||
"type": "string",
|
||||
"description": "object name",
|
||||
"name": "id",
|
||||
"name": "file_name",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
@@ -1627,6 +1622,18 @@ const docTemplate = `{
|
||||
"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": {
|
||||
@@ -1634,7 +1641,9 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
"/file/{id}": {
|
||||
"delete": {
|
||||
"security": [
|
||||
{
|
||||
@@ -5557,7 +5566,7 @@ const docTemplate = `{
|
||||
"BearerAuth": []
|
||||
}
|
||||
],
|
||||
"description": "Returns a single user",
|
||||
"description": "Returns a single user with assigned branches",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user