Commit f014e88b authored by RobertDing's avatar RobertDing

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

parents 267d8cb8 5b804f97
...@@ -65,6 +65,13 @@ paths: ...@@ -65,6 +65,13 @@ paths:
responses: responses:
'200': '200':
description: OK description: OK
schema: {}
examples:
application/json:
error: 0
message: ''
data:
# ------------------------ # ------------------------
/account/captcha: /account/captcha:
get: get:
...@@ -75,7 +82,13 @@ paths: ...@@ -75,7 +82,13 @@ paths:
- Account - Account
responses: responses:
'200': '200':
description: ok responses: ok
schema: {}
examples:
application/json:
error: 0
message: ''
data:
# ------------------------ # ------------------------
/account/login: /account/login:
post: post:
...@@ -140,7 +153,7 @@ paths: ...@@ -140,7 +153,7 @@ paths:
error: 0 error: 0
message: '' message: ''
# ------------------------ # ------------------------
account/logout: /account/logout:
post: post:
summary: 登录出去 summary: 登录出去
description: 登录出去 description: 登录出去
...@@ -156,7 +169,7 @@ paths: ...@@ -156,7 +169,7 @@ paths:
message: '' message: ''
data: null data: null
# ------------------------ # ------------------------
account/code: /account/code:
post: post:
summary: 发送手机验证码 summary: 发送手机验证码
description: 发送手机验证码 description: 发送手机验证码
...@@ -179,7 +192,7 @@ paths: ...@@ -179,7 +192,7 @@ paths:
message: '' message: ''
data: null data: null
# ------------------------ # ------------------------
account/password: /account/password:
post: post:
summary: 更改密码 summary: 更改密码
description: 更改密码 description: 更改密码
...@@ -280,12 +293,6 @@ paths: ...@@ -280,12 +293,6 @@ paths:
required: false required: false
type: integer type: integer
format: integer format: integer
- name: size
in: query
description: 请求多少条数据,默认为10
required: false
type: integer
format: integer
tags: tags:
- Agreement - Agreement
responses: responses:
...@@ -314,6 +321,13 @@ paths: ...@@ -314,6 +321,13 @@ paths:
get: get:
summary: 公告列表 summary: 公告列表
description: 医生公告列表 description: 医生公告列表
parameters:
- name: page
in: formData
description: 第几页,默认为1
required: false
type: integer
format: integer
tags: tags:
- bulletin - bulletin
responses: responses:
...@@ -325,10 +339,14 @@ paths: ...@@ -325,10 +339,14 @@ paths:
error: 0 error: 0
message: '' message: ''
data: data:
- date: 1458730446 page: 1
image: 'http://hera.s.gmei.com/bulletin/2016/03/23/b3e00f8825' size: 10
title: 我的第一个公告 total: 3
content_id: 2 bulletints:
- date: 1458730446
image: 'http://hera.s.gmei.com/bulletin/2016/03/23/b3e00f8825'
title: 我的第一个公告
content_id: 2
# ------------------------ # ------------------------
/bulletin/{id}: /bulletin/{id}:
get: get:
...@@ -546,7 +564,7 @@ paths: ...@@ -546,7 +564,7 @@ paths:
parameters: parameters:
- name: id - name: id
in: path in: path
description: 对帐单ID description: 单ID
required: true required: true
type: integer type: integer
format: integer format: integer
...@@ -601,6 +619,7 @@ paths: ...@@ -601,6 +619,7 @@ paths:
hospital_payment: 0 hospital_payment: 0
refund_time: 1470394763 refund_time: 1470394763
id: '3138635937' id: '3138635937'
order_id: 3138635937
gengmei_price: 1 gengmei_price: 1
- name: 【北京@刘浩】test003专用测试,请勿修改或删除,谢谢合作! - name: 【北京@刘浩】test003专用测试,请勿修改或删除,谢谢合作!
status: '已验证' status: '已验证'
...@@ -610,6 +629,7 @@ paths: ...@@ -610,6 +629,7 @@ paths:
hospital_payment: 331 hospital_payment: 331
refund_time: 1470160719 refund_time: 1470160719
id: '4626252114' id: '4626252114'
order_id: 3138635937
gengmei_price: 333 gengmei_price: 333
# ------------------------ # ------------------------
/refund/{id}: /refund/{id}:
...@@ -624,8 +644,9 @@ paths: ...@@ -624,8 +644,9 @@ paths:
schema: {} schema: {}
examples: examples:
application/json: application/json:
data: data:
id: 123 id: 123
order_id: 123
service_id: 234 service_id: 234
service_name: '美购名称' service_name: '美购名称'
items: '实际购买属性' items: '实际购买属性'
......
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