GET api/banners/{type}?keyWord={keyWord}&lang={lang}&preview={preview}&count={count}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

string

Required

keyWord

string

None.

lang

string

None.

preview

boolean

Default value is False

count

integer

Default value is -1

Body Parameters

None.

Response Information

Resource Description

ResponseResultOfListOfBannerInfo
NameDescriptionTypeAdditional information
Data

Collection of BannerInfo

None.

Message

string

None.

Status

integer

None.

Page

PageInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Id": 1,
      "TagName": "sample string 2",
      "ClassName": "sample string 3",
      "IsCarousel": true,
      "Lists": [
        {
          "Url": "sample string 1",
          "Price": 2.0,
          "Id": 3,
          "Title": "sample string 4",
          "Location": "sample string 5",
          "IconUrl": "sample string 6"
        },
        {
          "Url": "sample string 1",
          "Price": 2.0,
          "Id": 3,
          "Title": "sample string 4",
          "Location": "sample string 5",
          "IconUrl": "sample string 6"
        }
      ]
    },
    {
      "Id": 1,
      "TagName": "sample string 2",
      "ClassName": "sample string 3",
      "IsCarousel": true,
      "Lists": [
        {
          "Url": "sample string 1",
          "Price": 2.0,
          "Id": 3,
          "Title": "sample string 4",
          "Location": "sample string 5",
          "IconUrl": "sample string 6"
        },
        {
          "Url": "sample string 1",
          "Price": 2.0,
          "Id": 3,
          "Title": "sample string 4",
          "Location": "sample string 5",
          "IconUrl": "sample string 6"
        }
      ]
    }
  ],
  "Message": "sample string 1",
  "Status": 2,
  "Page": {
    "PageIndex": 1,
    "PageTotal": 2,
    "DataTotal": 3,
    "PostSize": 4,
    "TagSize": 5,
    "ThemeSize": 6
  }
}

application/xml, text/xml

Sample:
<ResponseResultOfArrayOfBannerInfoP7YVfQIp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlogAdmin.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BlogAdmin.Models.Banner">
    <d2p1:BannerInfo>
      <d2p1:ClassName>sample string 3</d2p1:ClassName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsCarousel>true</d2p1:IsCarousel>
      <d2p1:Lists>
        <d2p1:BannerDetailInfo>
          <d2p1:IconUrl>sample string 6</d2p1:IconUrl>
          <d2p1:Id>3</d2p1:Id>
          <d2p1:Location>sample string 5</d2p1:Location>
          <d2p1:Price>2</d2p1:Price>
          <d2p1:Title>sample string 4</d2p1:Title>
          <d2p1:Url>sample string 1</d2p1:Url>
        </d2p1:BannerDetailInfo>
        <d2p1:BannerDetailInfo>
          <d2p1:IconUrl>sample string 6</d2p1:IconUrl>
          <d2p1:Id>3</d2p1:Id>
          <d2p1:Location>sample string 5</d2p1:Location>
          <d2p1:Price>2</d2p1:Price>
          <d2p1:Title>sample string 4</d2p1:Title>
          <d2p1:Url>sample string 1</d2p1:Url>
        </d2p1:BannerDetailInfo>
      </d2p1:Lists>
      <d2p1:TagName>sample string 2</d2p1:TagName>
    </d2p1:BannerInfo>
    <d2p1:BannerInfo>
      <d2p1:ClassName>sample string 3</d2p1:ClassName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsCarousel>true</d2p1:IsCarousel>
      <d2p1:Lists>
        <d2p1:BannerDetailInfo>
          <d2p1:IconUrl>sample string 6</d2p1:IconUrl>
          <d2p1:Id>3</d2p1:Id>
          <d2p1:Location>sample string 5</d2p1:Location>
          <d2p1:Price>2</d2p1:Price>
          <d2p1:Title>sample string 4</d2p1:Title>
          <d2p1:Url>sample string 1</d2p1:Url>
        </d2p1:BannerDetailInfo>
        <d2p1:BannerDetailInfo>
          <d2p1:IconUrl>sample string 6</d2p1:IconUrl>
          <d2p1:Id>3</d2p1:Id>
          <d2p1:Location>sample string 5</d2p1:Location>
          <d2p1:Price>2</d2p1:Price>
          <d2p1:Title>sample string 4</d2p1:Title>
          <d2p1:Url>sample string 1</d2p1:Url>
        </d2p1:BannerDetailInfo>
      </d2p1:Lists>
      <d2p1:TagName>sample string 2</d2p1:TagName>
    </d2p1:BannerInfo>
  </Data>
  <Message>sample string 1</Message>
  <Page>
    <DataTotal>3</DataTotal>
    <PageIndex>1</PageIndex>
    <PageTotal>2</PageTotal>
    <PostSize>4</PostSize>
    <TagSize>5</TagSize>
    <ThemeSize>6</ThemeSize>
  </Page>
  <Status>2</Status>
</ResponseResultOfArrayOfBannerInfoP7YVfQIp>