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": {
|
"get": {
|
||||||
"security": [
|
"description": "download file by object name (public; not under /api/admin)",
|
||||||
{
|
|
||||||
"BearerAuth": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "download file",
|
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/octet-stream"
|
"application/octet-stream"
|
||||||
],
|
],
|
||||||
@@ -1615,7 +1610,7 @@ const docTemplate = `{
|
|||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "object name",
|
"description": "object name",
|
||||||
"name": "id",
|
"name": "file_name",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1627,6 +1622,18 @@ const docTemplate = `{
|
|||||||
"type": "file"
|
"type": "file"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Bad Request",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/appresult.AppError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Not Found",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/appresult.AppError"
|
||||||
|
}
|
||||||
|
},
|
||||||
"500": {
|
"500": {
|
||||||
"description": "Internal Server Error",
|
"description": "Internal Server Error",
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -1634,7 +1641,9 @@ const docTemplate = `{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
"/file/{id}": {
|
||||||
"delete": {
|
"delete": {
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
@@ -5557,7 +5566,7 @@ const docTemplate = `{
|
|||||||
"BearerAuth": []
|
"BearerAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns a single user",
|
"description": "Returns a single user with assigned branches",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1591,14 +1591,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/file/{id}": {
|
"/file/{file_name}": {
|
||||||
"get": {
|
"get": {
|
||||||
"security": [
|
"description": "download file by object name (public; not under /api/admin)",
|
||||||
{
|
|
||||||
"BearerAuth": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "download file",
|
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/octet-stream"
|
"application/octet-stream"
|
||||||
],
|
],
|
||||||
@@ -1609,7 +1604,7 @@
|
|||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "object name",
|
"description": "object name",
|
||||||
"name": "id",
|
"name": "file_name",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
@@ -1621,6 +1616,18 @@
|
|||||||
"type": "file"
|
"type": "file"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Bad Request",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/appresult.AppError"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Not Found",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/appresult.AppError"
|
||||||
|
}
|
||||||
|
},
|
||||||
"500": {
|
"500": {
|
||||||
"description": "Internal Server Error",
|
"description": "Internal Server Error",
|
||||||
"schema": {
|
"schema": {
|
||||||
@@ -1628,7 +1635,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
"/file/{id}": {
|
||||||
"delete": {
|
"delete": {
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
@@ -5551,7 +5560,7 @@
|
|||||||
"BearerAuth": []
|
"BearerAuth": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Returns a single user",
|
"description": "Returns a single user with assigned branches",
|
||||||
"produces": [
|
"produces": [
|
||||||
"application/json"
|
"application/json"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -2274,6 +2274,36 @@ paths:
|
|||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
tags:
|
tags:
|
||||||
- file-upload
|
- file-upload
|
||||||
|
/file/{file_name}:
|
||||||
|
get:
|
||||||
|
description: download file by object name (public; not under /api/admin)
|
||||||
|
parameters:
|
||||||
|
- description: object name
|
||||||
|
in: path
|
||||||
|
name: file_name
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
produces:
|
||||||
|
- application/octet-stream
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
schema:
|
||||||
|
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:
|
||||||
|
$ref: '#/definitions/appresult.AppError'
|
||||||
|
tags:
|
||||||
|
- file-upload
|
||||||
/file/{id}:
|
/file/{id}:
|
||||||
delete:
|
delete:
|
||||||
description: remove file
|
description: remove file
|
||||||
@@ -2298,29 +2328,6 @@ paths:
|
|||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
tags:
|
tags:
|
||||||
- file-upload
|
- file-upload
|
||||||
get:
|
|
||||||
description: download file
|
|
||||||
parameters:
|
|
||||||
- description: object name
|
|
||||||
in: path
|
|
||||||
name: id
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
produces:
|
|
||||||
- application/octet-stream
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
schema:
|
|
||||||
type: file
|
|
||||||
"500":
|
|
||||||
description: Internal Server Error
|
|
||||||
schema:
|
|
||||||
$ref: '#/definitions/appresult.AppError'
|
|
||||||
security:
|
|
||||||
- BearerAuth: []
|
|
||||||
tags:
|
|
||||||
- file-upload
|
|
||||||
/forgot-password:
|
/forgot-password:
|
||||||
post:
|
post:
|
||||||
consumes:
|
consumes:
|
||||||
@@ -4758,7 +4765,7 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- user
|
- user
|
||||||
get:
|
get:
|
||||||
description: Returns a single user
|
description: Returns a single user with assigned branches
|
||||||
parameters:
|
parameters:
|
||||||
- description: User ID
|
- description: User ID
|
||||||
in: path
|
in: path
|
||||||
@@ -4831,7 +4838,8 @@ paths:
|
|||||||
- user
|
- user
|
||||||
/users/clients:
|
/users/clients:
|
||||||
get:
|
get:
|
||||||
description: Returns paginated client users (role user, not assigned to any branch)
|
description: Returns paginated client users (role user, not assigned to any
|
||||||
|
branch)
|
||||||
parameters:
|
parameters:
|
||||||
- description: Search by username, first name, or last name
|
- description: Search by username, first name, or last name
|
||||||
in: query
|
in: query
|
||||||
|
|||||||
Reference in New Issue
Block a user