Commit cc43ae62 authored by zhangxiaolin's avatar zhangxiaolin

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

parents 1f3e46e2 b0d1fa98
......@@ -19,7 +19,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
data:
doctor:
department: 美容外科
......@@ -115,7 +114,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
data:
doctor:
department: 美容外科
......@@ -154,7 +152,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
......@@ -178,7 +175,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
......@@ -208,7 +204,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
......@@ -225,8 +220,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
success: true
data:
status: 1
title: 0123456789012345
......@@ -248,7 +241,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
error: 0
message: ''
data: null
......@@ -265,8 +257,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
success: true
data:
- send_time: 1470137721
content: zcxklvnkj.bfak.wbf分爱死了的女阿克苏的那款那棵树的部分款
......@@ -304,8 +294,6 @@ paths:
schema: {}
examples:
application/json:
error_code: 0
success: true
data:
accepted_list:
- send_time: 1470137721
......@@ -341,8 +329,6 @@ paths:
image: 'http://hera.s.gmei.com/bulletin/2016/03/23/b3e00f8825'
title: 我的第一个公告
content_id: 2
error_code: 0
success: true
# ------------------------
/bulletin/{id}:
get:
......@@ -363,8 +349,6 @@ paths:
content_id: 2
message: ''
error: 0
success: true
error_code: 0
# ------------------------
/switch:
get:
......@@ -710,8 +694,6 @@ paths:
total: 10
message: ''
error: 0
success: true
error_code: 0
# ------------------------
/statement/{id}:
get:
......@@ -841,6 +823,39 @@ paths:
error: 0
message: ""
/search/reply:
get:
summary: 用户回复列表
description: 搜用户相关的,非私信类的话题,根据帖子权重和最后修改时间降序排列
parameters:
- name: page
in: query
description: 分页
required: false
type: integer
format: integer
tags:
- Topic
responses:
'200':
description: OK
schema: {}
examples:
application/json:
data:
total: 1235
topics:
- title: '颜医生,请问玻尿酸丰下巴怎样收费'
doctor_num: 4
user_name: '变美不为男人'
city: '北京'
score: 3
date: 145678345
id: 12177395
error: 0
message: ""
/tag:
get:
summary: 获取查询标签
......@@ -891,6 +906,167 @@ paths:
image_thumb: "http://pic.gengmei.cc/2015/05/25/35fe857608-web"
image: "http://pic.gengmei.cc/2015/05/25/35fe857608-w"
/topic/<topic_id>/reply:
get:
summary: 帖子回复
description: 帖子回复
parameters:
- name: page
in: query
description: 请求第几页的数据,默认为1
required: false
type: integer
format: integer
tags:
- Topic
responses:
'200':
description: OK
schema: {}
examples:
application/json:
message: ''
error: 0
data:
user_nickname: "王飏"
content: "hehe \n您提供的照片不符合标准,无法给出具体建议,建议上传……"
reply_id: 12048264
user_type: 2
user_id: "newhos11161827"
user_portrait: "http://wanmeizhensuo.qiniudn.com/2015/02/14/9c808ed226"
is_liked: false
favor_amount: 0
is_best_reply: false
comments:
- comment_id: 12048265
content: "hehehe您的问题难以准确回答,建议咨询您的手术医生……"
comment_user_id: "newhos11161827"
nickname: "王飏医生"
at_user_type: 0
at_user_id: 602329
at_nickname: ""
is_best_reply: false
comment_user_type: 2
reply_date: 128833445
/topic/<topic_id>/reply/<reply_id>:
post:
summary: 回复
description: 回复话题,回复话题的回复
parameters:
- name: content
in: query
description: 回复的内容
required: true
type: string
format: string
tags:
- Topic
responses:
'200':
description: OK
/topic/<topic_id>/sink:
post:
summary: 话题下沉
description: 更改话题分值,话题往后排
parameters:
- name: topic_id
in: query
description: 话题ID
required: true
type: integer
format: integer
tags:
- Topic
responses:
'200':
description: OK
/conversation:
get:
summary: 私信列表
description: 私信列表
parameters:
- name: page
in: query
description: 页数
required: false
type: integer
format: integer
tags:
- Conversation
responses:
'200':
description: OK
schema: {}
examples:
application/json:
message: ''
error: 0
data:
- jump_value: "111549_602329"
is_new: false
user_key: "111549_602329"
doctor_id: ""
id: 1270639
jump_type: "6"
nickname: "发疯了的猫"
portrait: "http://pic.gengmei.cc/2015/09/08/1226facfe0"
hospital_id: ""
last_reply_time: 145554334
text: "呵呵大"
/conversation/<target_user_id>:
get:
summary: 私信详情
description: 私信详情
tags:
- Conversation
responses:
'200':
description: OK
schema: {}
examples:
application/json:
error: 0
message: ""
data:
- id: 2936562
user_key: "111549_602329"
audio: ""
portrait: "http://pic.gengmei.cc/2015/09/01/e587955d7f-thumb"
uid: 111549
nickname: "发疯了的猫"
reply_time: 145665544
type: "0"
image: ""
image_thumb: ""
text: "干嘛"
send_time: 113345455
doctor_id: ""
post:
summary: 回复私信
description: 回复私信
parameters:
- name: type
in: formData
description: 回复类型
required: true
type: integer
format: integer
- name: content
in: formData
description: 回复内容
required: true
type: string
tags:
- Conversation
responses:
'200':
description: OK
# ------------------------
/reserve:
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