add minio and file upload
This commit is contained in:
@@ -1007,6 +1007,83 @@ paths:
|
||||
summary: Update branch
|
||||
tags:
|
||||
- branches
|
||||
/file:
|
||||
post:
|
||||
consumes:
|
||||
- multipart/form-data
|
||||
description: file upload
|
||||
parameters:
|
||||
- description: this is a test file
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- file-upload
|
||||
/file/{id}:
|
||||
delete:
|
||||
description: remove file
|
||||
parameters:
|
||||
- description: object name
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- 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
|
||||
/loan-orders:
|
||||
get:
|
||||
description: Returns paginated loan orders with optional filters
|
||||
|
||||
Reference in New Issue
Block a user