GET api/SearchResultPage/GetSearchResult?languageType={languageType}&currentPage={currentPage}&pageSize={pageSize}&keyValue={keyValue}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
languageType

CmsLanguage

Required

currentPage

integer

Required

pageSize

integer

Required

keyValue

string

Required

Body Parameters

None.

Response Information

Resource Description

SearchResultPageResponse
NameDescriptionTypeAdditional information
ResultList

Collection of SearchResultPageModel

None.

TotalNumber

integer

None.

ResponseCode

ResponseCode

None.

AlertMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultList": [
    {
      "ArticleID": 1,
      "Subject": "sample string 2",
      "Title": "sample string 3",
      "TabText": "sample string 4",
      "Tabs": [
        "sample string 1",
        "sample string 2"
      ],
      "CoverImage": "sample string 5",
      "Body": "sample string 6",
      "PlainBody": "sample string 7",
      "DataType": 8,
      "PublishDate": "2024-11-06T21:43:21.5834513+08:00",
      "PublishDateTime": "sample string 10",
      "URLFreeText": "sample string 11"
    },
    {
      "ArticleID": 1,
      "Subject": "sample string 2",
      "Title": "sample string 3",
      "TabText": "sample string 4",
      "Tabs": [
        "sample string 1",
        "sample string 2"
      ],
      "CoverImage": "sample string 5",
      "Body": "sample string 6",
      "PlainBody": "sample string 7",
      "DataType": 8,
      "PublishDate": "2024-11-06T21:43:21.5834513+08:00",
      "PublishDateTime": "sample string 10",
      "URLFreeText": "sample string 11"
    }
  ],
  "TotalNumber": 1,
  "ResponseCode": 1,
  "AlertMessage": "sample string 2"
}

text/xml

Sample:
<SearchResultPageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CentaMortgageWebAPI.Models">
  <AlertMessage>sample string 2</AlertMessage>
  <ResponseCode>Success</ResponseCode>
  <ResultList>
    <SearchResultPageModel>
      <ArticleID>1</ArticleID>
      <Body>sample string 6</Body>
      <CoverImage>sample string 5</CoverImage>
      <DataType>8</DataType>
      <PlainBody>sample string 7</PlainBody>
      <PublishDate>2024-11-06T21:43:21.5834513+08:00</PublishDate>
      <PublishDateTime>sample string 10</PublishDateTime>
      <Subject>sample string 2</Subject>
      <TabText>sample string 4</TabText>
      <Tabs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Tabs>
      <Title>sample string 3</Title>
      <URLFreeText>sample string 11</URLFreeText>
    </SearchResultPageModel>
    <SearchResultPageModel>
      <ArticleID>1</ArticleID>
      <Body>sample string 6</Body>
      <CoverImage>sample string 5</CoverImage>
      <DataType>8</DataType>
      <PlainBody>sample string 7</PlainBody>
      <PublishDate>2024-11-06T21:43:21.5834513+08:00</PublishDate>
      <PublishDateTime>sample string 10</PublishDateTime>
      <Subject>sample string 2</Subject>
      <TabText>sample string 4</TabText>
      <Tabs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Tabs>
      <Title>sample string 3</Title>
      <URLFreeText>sample string 11</URLFreeText>
    </SearchResultPageModel>
  </ResultList>
  <TotalNumber>1</TotalNumber>
</SearchResultPageResponse>