Commit 4c2fd60e authored by zhangxiaolin's avatar zhangxiaolin

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

parents 43d205a3 67c38f37
...@@ -82,7 +82,7 @@ paths: ...@@ -82,7 +82,7 @@ paths:
- Account - Account
responses: responses:
'200': '200':
responses: ok description: ok
schema: {} schema: {}
examples: examples:
application/json: application/json:
...@@ -897,10 +897,17 @@ paths: ...@@ -897,10 +897,17 @@ paths:
- name: 眼睛 - name: 眼睛
id: 123 id: 123
/topic/<topic_id>: /topic/{topic_id}:
get: get:
summary: 帖子详情 summary: 帖子详情
description: 帖子详情 description: 帖子详情
parameters:
- name: topic_id
in: path
description: 帖子ID
required: true
type: integer
format: integer
tags: tags:
- Topic - Topic
responses: responses:
...@@ -928,11 +935,17 @@ paths: ...@@ -928,11 +935,17 @@ paths:
image: "http://pic.gengmei.cc/2015/05/25/35fe857608-w" image: "http://pic.gengmei.cc/2015/05/25/35fe857608-w"
/topic/<topic_id>/reply: /topic/{topic_id}/reply:
get: get:
summary: 帖子回复 summary: 帖子回复
description: 帖子回复 description: 帖子回复
parameters: parameters:
- name: topic_id
in: path
description: 帖子ID
required: false
type: integer
format: integer
- name: page - name: page
in: query in: query
description: 请求第几页的数据,默认为1 description: 请求第几页的数据,默认为1
...@@ -971,11 +984,23 @@ paths: ...@@ -971,11 +984,23 @@ paths:
comment_user_type: 2 comment_user_type: 2
reply_date: 128833445 reply_date: 128833445
/topic/<topic_id>/reply/<reply_id>: /topic/{topic_id}/reply/{reply_id}:
post: post:
summary: 回复 summary: 回复
description: 回复话题,回复话题的回复 description: 回复话题,回复话题的回复
parameters: parameters:
- name: topic_id
in: path
description: 话题ID
required: true
type: integer
format: integer
- name: reply_id
in: path
description: 回复ID
required: true
type: integer
format: integer
- name: content - name: content
in: query in: query
description: 回复的内容 description: 回复的内容
...@@ -988,13 +1013,13 @@ paths: ...@@ -988,13 +1013,13 @@ paths:
'200': '200':
description: OK description: OK
/topic/<topic_id>/sink: /topic/{topic_id}/sink:
post: post:
summary: 话题下沉 summary: 话题下沉
description: 更改话题分值,话题往后排 description: 更改话题分值,话题往后排
parameters: parameters:
- name: topic_id - name: topic_id
in: query in: path
description: 话题ID description: 话题ID
required: true required: true
type: integer type: integer
...@@ -1039,10 +1064,17 @@ paths: ...@@ -1039,10 +1064,17 @@ paths:
last_reply_time: 145554334 last_reply_time: 145554334
text: "呵呵大" text: "呵呵大"
/conversation/<target_user_id>: /conversation/{target_user_id}:
get: get:
summary: 私信详情 summary: 私信详情
description: 私信详情 description: 私信详情
parameters:
- name: target_user_id
in: path
description: 私信用户ID
required: true
type: integer
format: integer
tags: tags:
- Conversation - Conversation
responses: responses:
......
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