You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.2 KiB
58 lines
1.2 KiB
4 months ago
|
basePath: /minio
|
||
|
info:
|
||
|
contact: {}
|
||
|
description: nft
|
||
|
title: Swagger Example API
|
||
|
version: 0.0.1
|
||
|
paths:
|
||
|
/base/file:
|
||
|
get:
|
||
|
parameters:
|
||
|
- in: query
|
||
|
name: fileName
|
||
|
type: string
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"code": 0, "data": "","msg": "ok"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
"3000":
|
||
|
description: '{"code": 1, "msg": ""}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- Bearer: []
|
||
|
summary: 获取文件临时地址(可不用)
|
||
|
tags:
|
||
|
- file
|
||
|
/base/upload:
|
||
|
post:
|
||
|
consumes:
|
||
|
- multipart/form-data
|
||
|
parameters:
|
||
|
- description: file文件
|
||
|
in: formData
|
||
|
name: file
|
||
|
required: true
|
||
|
type: string
|
||
|
responses:
|
||
|
"200":
|
||
|
description: '{"code": 0, "data": "","msg": "Transaction complete"}'
|
||
|
schema:
|
||
|
type: string
|
||
|
"3000":
|
||
|
description: '{"code": 1, "msg": ""}'
|
||
|
schema:
|
||
|
type: string
|
||
|
security:
|
||
|
- Bearer: []
|
||
|
summary: 上传文件
|
||
|
tags:
|
||
|
- file
|
||
|
securityDefinitions:
|
||
|
ApiKeyAuth:
|
||
|
in: header
|
||
|
name: x-token
|
||
|
type: apiKey
|
||
|
swagger: "2.0"
|