Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- definitions:
- md.Response:
- properties:
- code:
- example: 响应码
- type: string
- data:
- description: 内容
- msg:
- example: 具体错误原因
- type: string
- type: object
- host: localhost:4001
- info:
- contact:
- email: 1239118001@qq.com
- name: dengbiao
- url: http://www.swagger.io/support
- description: 管理后台接口文档
- license:
- name: Apache 2.0
- url: http://www.apache.org/licenses/LICENSE-2.0.html
- termsOfService: http://swagger.io/terms/
- title: 蛋蛋星球-管理后台
- version: "1.0"
- paths:
- /api/demo:
- post:
- consumes:
- - application/json
- description: Demo样例测试
- parameters:
- - description: 用户名密码
- in: body
- name: req
- required: true
- schema:
- type: object
- produces:
- - application/json
- responses:
- "200":
- description: token
- schema:
- additionalProperties: true
- type: object
- "400":
- description: 具体错误
- schema:
- $ref: '#/definitions/md.Response'
- summary: Demo测试
- tags:
- - Demo
- securityDefinitions:
- MasterID:
- in: header
- name: MasterID
- type: apiKey
- swagger: "2.0"
|