Commit 1c1509b3 authored by RobertDing's avatar RobertDing

Merge branch 'master' of git.gengmei.cc:zhangyunyu/swagger

parents 718fabd2 10610b40
......@@ -20,7 +20,6 @@ paths:
examples:
application/json:
error_code: 0
success: true
data:
doctor:
department: 美容外科
......@@ -46,6 +45,29 @@ paths:
id: jnpayl
error: 0
message: ''
# ------------------------
/account/user:
post:
summary: 修改用户信息
description: 修改用户信息
parameters:
- name: good_at
in: formData
description: 擅长,不能超过14个字
required: true
type: string
format: string
- name: introduction
in: formData
description: 个人简介
required: true
type: string
format: string
tags:
- Account
responses:
'200':
description: OK
# ------------------------
/account/captcha:
get:
......@@ -56,15 +78,16 @@ paths:
- Account
responses:
'200':
description: 图片验证码
description: ok
# ------------------------
/account/login:
post:
summary: 登录
description: 登录
parameters:
- name: phone
- name: name
in: formData
description: 用户手机号.
description: 用户手机号(以后可能会是邮箱等)
required: true
type: string
format: string
......@@ -76,7 +99,7 @@ paths:
format: string
- name: password
in: formData
description: 密码.
description: 密码.(密码,验证码必有一个)
required: false
type: string
format: string
......@@ -90,7 +113,107 @@ paths:
- Account
responses:
'200':
description: An array of price estimates by product
description: ok
schema: {}
examples:
application/json:
error_code: 0
data:
doctor:
department: 美容外科
phone: '15288842299'
accept_reserve: true
name: 王飏
portrait: http://wanmeizhensuo.qiniudn.com/2015/02/14/9c808ed226
introduction: introduction
id: wangyang
title: 主治医师
is_online: false
user:
in_blacklist: false
phone: '12345678912'
address: ''
id: 602329
portrait: http://wanmeizhensuo.qiniudn.com/2015/02/14/9c808ed226
city: 台北
real_name: ''
nick_name: 王飏 医生
hospital:
name: 济南鹏爱整形美容医院
id: jnpayl
error: 0
message: ''
# ------------------------
account/logout:
post:
summary: 登录出去
description: 登录出去
tags:
- Account
responses:
'200':
description: OK
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
# ------------------------
account/code:
post:
summary: 发送手机验证码
description: 发送手机验证码
tags:
- Account
parameters:
- name: type
in: formData
description: 是那种类型要求发送的(1, LOGIN, u登陆) (3, UPDATE,修改属性) (4, REGISTER,提交注册)
required: true
type: integer
format: integer
responses:
'200':
description: OK
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
# ------------------------
account/password:
post:
summary: 更改密码
description: 更改密码
tags:
- Account
parameters:
- name: new_password
in: formData
description: 新密码
required: true
type: string
format: string
- name: code
in: formData
description: 手机验证码
required: true
type: integer
format: integer
responses:
'200':
description: OK
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
# ------------------------
/agreement/{id}:
get:
......@@ -114,13 +237,6 @@ paths:
id: 2
error: 0
message: ''
parameters:
- name: id
in: path
description: 对帐单ID
required: true
type: integer
format: integer
# ------------------------
/agreement/{id}/accept:
post:
......@@ -131,13 +247,13 @@ paths:
responses:
'200':
description: OK
parameters:
- name: id
in: path
description: 对帐单ID
required: true
type: integer
format: integer
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
# ------------------------
/agreement/no_accepted:
get:
......@@ -251,13 +367,6 @@ paths:
error: 0
success: true
error_code: 0
parameters:
- name: id
in: path
description: 对帐单ID
required: true
type: integer
format: integer
# ------------------------
/switch:
get:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment