POST api/v1/topicv1/SearchTopicList

Request Information

URI Parameters

None.

Body Parameters

SearchTopicListParam
NameDescriptionTypeAdditional information
Keyword

string

None.

SortBy

integer

None.

PageIndex

integer

None.

PageSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Keyword": "sample string 1",
  "SortBy": 2,
  "PageIndex": 3,
  "PageSize": 4
}

application/xml, text/xml

Sample:
<SearchTopicListParam 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">3</PageIndex>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/DDO.AppApi.Models">4</PageSize>
  <Keyword>sample string 1</Keyword>
  <SortBy>2</SortBy>
</SearchTopicListParam>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PageListOfTopicListDto
NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

TotalPage

integer

None.

TotalCount

integer

None.

Items

Collection of TopicListDto

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,
      "TopicImg": "sample string 2",
      "Title": "sample string 3",
      "DescriptionRules": "sample string 4",
      "YesAmount": 5.0,
      "NoAmount": 6.0,
      "TotalAmount": 11.0,
      "YesRatio": 7.0,
      "NoRatio": 8.0,
      "IsFocusOn": true,
      "ParticipationEndTimestamp": 10
    },
    {
      "Id": 1,
      "TopicImg": "sample string 2",
      "Title": "sample string 3",
      "DescriptionRules": "sample string 4",
      "YesAmount": 5.0,
      "NoAmount": 6.0,
      "TotalAmount": 11.0,
      "YesRatio": 7.0,
      "NoRatio": 8.0,
      "IsFocusOn": true,
      "ParticipationEndTimestamp": 10
    }
  ]
}

text/xml

Sample:
<PageListOfTopicListDtov4v4Uyl1 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:TopicListDto>
      <d2p1:DescriptionRules>sample string 4</d2p1:DescriptionRules>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsFocusOn>true</d2p1:IsFocusOn>
      <d2p1:NoAmount>6</d2p1:NoAmount>
      <d2p1:NoRatio>8</d2p1:NoRatio>
      <d2p1:ParticipationEndTimestamp>10</d2p1:ParticipationEndTimestamp>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:TopicImg>sample string 2</d2p1:TopicImg>
      <d2p1:YesAmount>5</d2p1:YesAmount>
      <d2p1:YesRatio>7</d2p1:YesRatio>
    </d2p1:TopicListDto>
    <d2p1:TopicListDto>
      <d2p1:DescriptionRules>sample string 4</d2p1:DescriptionRules>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsFocusOn>true</d2p1:IsFocusOn>
      <d2p1:NoAmount>6</d2p1:NoAmount>
      <d2p1:NoRatio>8</d2p1:NoRatio>
      <d2p1:ParticipationEndTimestamp>10</d2p1:ParticipationEndTimestamp>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:TopicImg>sample string 2</d2p1:TopicImg>
      <d2p1:YesAmount>5</d2p1:YesAmount>
      <d2p1:YesRatio>7</d2p1:YesRatio>
    </d2p1:TopicListDto>
  </Items>
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
  <TotalCount>4</TotalCount>
  <TotalPage>3</TotalPage>
</PageListOfTopicListDtov4v4Uyl1>