Regenerate Swagger for public file GET and user branches.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2274,6 +2274,36 @@ paths:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- 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}:
|
||||
delete:
|
||||
description: remove file
|
||||
@@ -2298,29 +2328,6 @@ paths:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- 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:
|
||||
post:
|
||||
consumes:
|
||||
@@ -4758,7 +4765,7 @@ paths:
|
||||
tags:
|
||||
- user
|
||||
get:
|
||||
description: Returns a single user
|
||||
description: Returns a single user with assigned branches
|
||||
parameters:
|
||||
- description: User ID
|
||||
in: path
|
||||
@@ -4831,7 +4838,8 @@ paths:
|
||||
- user
|
||||
/users/clients:
|
||||
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:
|
||||
- description: Search by username, first name, or last name
|
||||
in: query
|
||||
|
||||
Reference in New Issue
Block a user