POST api/v1/topiccommentv1/CommentList
Request Information
URI Parameters
None.
Body Parameters
OddTopicCommentParamDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TopicId | integer |
None. |
|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TopicId": 1,
"PageIndex": 2,
"PageSize": 3
}
application/xml, text/xml
Sample:
<OddTopicCommentParamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DDO.AppApi.Models.v1.Params.Odd"> <PageIndex xmlns="http://schemas.datacontract.org/2004/07/DDO.AppApi.Models">2</PageIndex> <PageSize xmlns="http://schemas.datacontract.org/2004/07/DDO.AppApi.Models">3</PageSize> <TopicId>1</TopicId> </OddTopicCommentParamDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PageListOfOddTopicCommentDto| Name | Description | Type | Additional information |
|---|---|---|---|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
|
| TotalPage | integer |
None. |
|
| TotalCount | integer |
None. |
|
| Items | Collection of OddTopicCommentDto |
None. |
Response Formats
application/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/json
Sample:
{
"PageIndex": 1,
"PageSize": 2,
"TotalPage": 3,
"TotalCount": 4,
"Items": [
{
"Id": 1,
"TopicId": 2,
"Avatar": "sample string 3",
"NickName": "sample string 4",
"Comments": "sample string 5",
"CreateTimestamp": 6
},
{
"Id": 1,
"TopicId": 2,
"Avatar": "sample string 3",
"NickName": "sample string 4",
"Comments": "sample string 5",
"CreateTimestamp": 6
}
]
}
text/xml
Sample:
<PageListOfOddTopicCommentDtov4v4Uyl1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Smart.Infrastructure.Collections">
<Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Smart.Domain.Dto.Activity.Odd">
<d2p1:OddTopicCommentDto>
<d2p1:Avatar>sample string 3</d2p1:Avatar>
<d2p1:Comments>sample string 5</d2p1:Comments>
<d2p1:CreateTimestamp>6</d2p1:CreateTimestamp>
<d2p1:Id>1</d2p1:Id>
<d2p1:NickName>sample string 4</d2p1:NickName>
<d2p1:TopicId>2</d2p1:TopicId>
</d2p1:OddTopicCommentDto>
<d2p1:OddTopicCommentDto>
<d2p1:Avatar>sample string 3</d2p1:Avatar>
<d2p1:Comments>sample string 5</d2p1:Comments>
<d2p1:CreateTimestamp>6</d2p1:CreateTimestamp>
<d2p1:Id>1</d2p1:Id>
<d2p1:NickName>sample string 4</d2p1:NickName>
<d2p1:TopicId>2</d2p1:TopicId>
</d2p1:OddTopicCommentDto>
</Items>
<PageIndex>1</PageIndex>
<PageSize>2</PageSize>
<TotalCount>4</TotalCount>
<TotalPage>3</TotalPage>
</PageListOfOddTopicCommentDtov4v4Uyl1>