Commit 19dfa429 authored by zhangxiaolin's avatar zhangxiaolin

update

parent 07427173
...@@ -15,9 +15,38 @@ paths: ...@@ -15,9 +15,38 @@ paths:
- Account - Account
responses: responses:
'200': '200':
description: 用户信息 description: OK
default: schema: {}
description: Unexpected error examples:
application/json:
error_code: 0
success: true
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/captcha: /account/captcha:
get: get:
summary: 图片验证码 summary: 图片验证码
...@@ -28,8 +57,6 @@ paths: ...@@ -28,8 +57,6 @@ paths:
responses: responses:
'200': '200':
description: 图片验证码 description: 图片验证码
default:
description: Unexpected error
/account/login: /account/login:
post: post:
summary: 登录 summary: 登录
...@@ -64,8 +91,7 @@ paths: ...@@ -64,8 +91,7 @@ paths:
responses: responses:
'200': '200':
description: An array of price estimates by product description: An array of price estimates by product
default: # ------------------------
description: Unexpected error
/agreement/<id>: /agreement/<id>:
get: get:
summary: 协议详情 summary: 协议详情
...@@ -75,6 +101,20 @@ paths: ...@@ -75,6 +101,20 @@ paths:
responses: responses:
'200': '200':
description: An array of price estimates by product description: An array of price estimates by product
schema: {}
examples:
application/json:
error_code: 0
success: true
data:
status: 1
title: 0123456789012345
content: 阿斯蒂芬
agree_time: 1470416242
id: 2
error: 0
message: ''
# ------------------------
/agreement/<id>/accept: /agreement/<id>/accept:
post: post:
summary: 接受协议 summary: 接受协议
...@@ -84,6 +124,7 @@ paths: ...@@ -84,6 +124,7 @@ paths:
responses: responses:
'200': '200':
description: OK description: OK
# ------------------------
/agreement/no_accepted: /agreement/no_accepted:
get: get:
summary: 没有接受的协议列表 summary: 没有接受的协议列表
...@@ -93,7 +134,24 @@ paths: ...@@ -93,7 +134,24 @@ paths:
responses: responses:
'200': '200':
description: OK description: OK
/agreement/: schema: {}
examples:
application/json:
error_code: 0
success: true
data:
- send_time: 1470137721
content: zcxklvnkj.bfak.wbf分爱死了的女阿克苏的那款那棵树的部分款
title: 第三个
id: 3
- send_time: 1470137721
content: 阿斯蒂芬
title: 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
id: 2
error: 0
message: ''
# ------------------------
/agreement:
get: get:
summary: 接受的协议列表 summary: 接受的协议列表
description: 按照分页返回协议列表 description: 按照分页返回协议列表
...@@ -115,6 +173,27 @@ paths: ...@@ -115,6 +173,27 @@ paths:
responses: responses:
'200': '200':
description: OK description: OK
schema: {}
examples:
application/json:
error_code: 0
success: true
data:
accepted_list:
- send_time: 1470137721
content: zcxklvnkj.bfak.wbf分爱死了的女
title: 第三个
id: 3
- send_time: 1470137721
content: 阿斯蒂芬
title: 012345678901234567890123
id: 2
size: 10
total: 3
page: 1
error: 0
message: ''
# ------------------------
/bulletin: /bulletin:
get: get:
summary: 公告列表 summary: 公告列表
...@@ -136,6 +215,7 @@ paths: ...@@ -136,6 +215,7 @@ paths:
content_id: 2 content_id: 2
error_code: 0 error_code: 0
success: true success: true
# ------------------------
/bulletin/<id>: /bulletin/<id>:
get: get:
summary: 公告详情 summary: 公告详情
...@@ -157,6 +237,7 @@ paths: ...@@ -157,6 +237,7 @@ paths:
error: 0 error: 0
success: true success: true
error_code: 0 error_code: 0
# ------------------------
/order: /order:
get: get:
summary: 订单列表 summary: 订单列表
...@@ -200,3 +281,5 @@ paths: ...@@ -200,3 +281,5 @@ paths:
error: 0 error: 0
success: true success: true
error_code: 0 error_code: 0
# ------------------------
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