GET api/comment/{appid}/{articleId}/{skip}/{limit}
获取文章评论
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
appid |
appid |
string |
Required |
articleId |
文章id |
string |
Required |
skip |
跳过数量 |
integer |
Default value is 0 |
limit |
获取数量 |
integer |
Default value is 5 |
Body Parameters
None.
Response Information
Resource Description
MemberComment[]
MemberCommentsName | Description | Type | Additional information |
---|---|---|---|
total |
评论数量 |
integer |
None. |
data |
按照页数传值返回的评论内容 |
Collection of MemberComment |
None. |
Response Formats
application/json, text/json
Sample:
{ "total": 1, "data": [ { "id": "sample string 1", "articleId": "sample string 2", "appid": "sample string 3", "user": { "appid": "sample string 1", "userid": "sample string 2" }, "nick": "sample string 4", "repcount": 5, "replyFor": "sample string 6", "content": "sample string 7", "postTime": "2022-05-26T15:31:43.7755315+08:00", "thumbUp": 9, "replies": [] }, { "id": "sample string 1", "articleId": "sample string 2", "appid": "sample string 3", "user": { "appid": "sample string 1", "userid": "sample string 2" }, "nick": "sample string 4", "repcount": 5, "replyFor": "sample string 6", "content": "sample string 7", "postTime": "2022-05-26T15:31:43.7755315+08:00", "thumbUp": 9, "replies": [] } ] }
application/xml, text/xml
Sample:
<MemberComments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin.Models"> <data> <MemberComment> <AppID>sample string 3</AppID> <ArticleID>sample string 2</ArticleID> <Content>sample string 7</Content> <ID>sample string 1</ID> <Nick>sample string 4</Nick> <PostTime>2022-05-26T15:31:43.7755315+08:00</PostTime> <Replies /> <RepliesCount>5</RepliesCount> <ReplyFor>sample string 6</ReplyFor> <ThumbUp>9</ThumbUp> <User> <appid>sample string 1</appid> <userid>sample string 2</userid> </User> </MemberComment> <MemberComment> <AppID>sample string 3</AppID> <ArticleID>sample string 2</ArticleID> <Content>sample string 7</Content> <ID>sample string 1</ID> <Nick>sample string 4</Nick> <PostTime>2022-05-26T15:31:43.7755315+08:00</PostTime> <Replies /> <RepliesCount>5</RepliesCount> <ReplyFor>sample string 6</ReplyFor> <ThumbUp>9</ThumbUp> <User> <appid>sample string 1</appid> <userid>sample string 2</userid> </User> </MemberComment> </data> <total>1</total> </MemberComments>