swagger.yaml 645 字节
Newer Older
Mr.奇淼('s avatar
swagger  
Mr.奇淼( 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
definitions:
  api.RegistStuct:
    properties:
      passWord:
        type: string
      userName:
        type: string
    type: object
info:
  contact: {}
  license: {}
paths:
  /user/regist:
    post:
      parameters:
      - description: 用户注册接口
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/api.RegistStuct'
          type: object
      produces:
      - application/x-www-form-urlencoded
      responses:
        "200":
          description: '{"code":200,"data":{},"msg":"ok"}'
          schema:
            type: string
      summary: 创建用户
swagger: "2.0"