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: ...@@ -20,7 +20,6 @@ paths:
examples: examples:
application/json: application/json:
error_code: 0 error_code: 0
success: true
data: data:
doctor: doctor:
department: 美容外科 department: 美容外科
...@@ -46,6 +45,29 @@ paths: ...@@ -46,6 +45,29 @@ paths:
id: jnpayl id: jnpayl
error: 0 error: 0
message: '' 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: /account/captcha:
get: get:
...@@ -56,15 +78,16 @@ paths: ...@@ -56,15 +78,16 @@ paths:
- Account - Account
responses: responses:
'200': '200':
description: 图片验证码 description: ok
# ------------------------
/account/login: /account/login:
post: post:
summary: 登录 summary: 登录
description: 登录 description: 登录
parameters: parameters:
- name: phone - name: name
in: formData in: formData
description: 用户手机号. description: 用户手机号(以后可能会是邮箱等)
required: true required: true
type: string type: string
format: string format: string
...@@ -76,7 +99,7 @@ paths: ...@@ -76,7 +99,7 @@ paths:
format: string format: string
- name: password - name: password
in: formData in: formData
description: 密码. description: 密码.(密码,验证码必有一个)
required: false required: false
type: string type: string
format: string format: string
...@@ -90,7 +113,107 @@ paths: ...@@ -90,7 +113,107 @@ paths:
- Account - Account
responses: responses:
'200': '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}: /agreement/{id}:
get: get:
...@@ -114,13 +237,6 @@ paths: ...@@ -114,13 +237,6 @@ paths:
id: 2 id: 2
error: 0 error: 0
message: '' message: ''
parameters:
- name: id
in: path
description: 对帐单ID
required: true
type: integer
format: integer
# ------------------------ # ------------------------
/agreement/{id}/accept: /agreement/{id}/accept:
post: post:
...@@ -131,13 +247,13 @@ paths: ...@@ -131,13 +247,13 @@ paths:
responses: responses:
'200': '200':
description: OK description: OK
parameters: schema: {}
- name: id examples:
in: path application/json:
description: 对帐单ID error_code: 0
required: true error: 0
type: integer message: ''
format: integer data: null
# ------------------------ # ------------------------
/agreement/no_accepted: /agreement/no_accepted:
get: get:
...@@ -251,13 +367,6 @@ paths: ...@@ -251,13 +367,6 @@ paths:
error: 0 error: 0
success: true success: true
error_code: 0 error_code: 0
parameters:
- name: id
in: path
description: 对帐单ID
required: true
type: integer
format: integer
# ------------------------ # ------------------------
/switch: /switch:
get: 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