GET v2/partners/{partner}/news?Find={Find}&Category={Category}&OnlyWithImage={OnlyWithImage}&OnlyTopRating={OnlyTopRating}&PageIndex={PageIndex}&PageSize={PageSize}&IsBodyHtml={IsBodyHtml}&HaveaImage={HaveaImage}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
partner

string

Required

Find

string

None.

Category

string

None.

OnlyWithImage

boolean

None.

OnlyTopRating

boolean

None.

PageIndex

integer

None.

PageSize

integer

None.

IsBodyHtml

boolean

None.

HaveaImage

boolean

None.

Body Parameters

None.

Response Information

Resource Description

PagedListResultOfNewsModel
NameDescriptionTypeAdditional information
PageIndex

integer

None.

PageSize

integer

None.

Total

integer

None.

Items

Collection of NewsModel

None.

Success

boolean

None.

ErrorMessage

string

None.

Status

ResultStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "PageIndex": 1,
  "PageSize": 2,
  "Total": 3,
  "Items": [
    {
      "$id": "2",
      "Author": "sample string 1",
      "ReleaseId": 2,
      "Title": "sample string 3",
      "Body": "sample string 4",
      "Summary": "sample string 5",
      "Image": {
        "$id": "3",
        "Id": "c33e9f17-7b1e-4e9c-ad8c-5ed254ed751e",
        "MimeType": "sample string 2",
        "Url": "sample string 3",
        "Alt": "sample string 4",
        "Description": "sample string 5",
        "Source": "sample string 6"
      },
      "PublishedDate": "2017-08-24T01:50:24.9366726-03:00",
      "UpdatedDate": "2017-08-24T01:50:24.9366726-03:00",
      "Categories": [
        {
          "$id": "4",
          "Name": "sample string 1",
          "Slug": "sample string 2",
          "__metadata": {
            "$id": "5",
            "type": "sample string 1",
            "uri": "sample string 2"
          }
        },
        {
          "$ref": "4"
        }
      ],
      "__metadata": {
        "$ref": "5"
      },
      "Url": "sample string 8",
      "PermitirAdsense": true,
      "Quote": "sample string 10",
      "VideoUrl": {
        "$id": "6",
        "Url": "sample string 1",
        "Descricao": "sample string 2"
      },
      "Place": "sample string 11",
      "WebsiteUrl": "sample string 12"
    },
    {
      "$ref": "2"
    }
  ],
  "Success": true,
  "ErrorMessage": "sample string 5",
  "Status": 0
}

application/xml, text/xml

Sample:
<PagedListResultOfNewsModelBrRlwU_Pn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dino.Domain.Contracts.Services.Result">
  <ErrorMessage>sample string 5</ErrorMessage>
  <Status>Success</Status>
  <Success>true</Success>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dino.API.Models">
    <d2p1:NewsModel>
      <d2p1:Author>sample string 1</d2p1:Author>
      <d2p1:Body>sample string 4</d2p1:Body>
      <d2p1:Categories>
        <d2p1:NewsCategoryModel>
          <d2p1:Metadata>
            <d2p1:Type>sample string 1</d2p1:Type>
            <d2p1:Uri>sample string 2</d2p1:Uri>
          </d2p1:Metadata>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Slug>sample string 2</d2p1:Slug>
        </d2p1:NewsCategoryModel>
        <d2p1:NewsCategoryModel>
          <d2p1:Metadata>
            <d2p1:Type>sample string 1</d2p1:Type>
            <d2p1:Uri>sample string 2</d2p1:Uri>
          </d2p1:Metadata>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Slug>sample string 2</d2p1:Slug>
        </d2p1:NewsCategoryModel>
      </d2p1:Categories>
      <d2p1:Image>
        <d2p1:Alt>sample string 4</d2p1:Alt>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:Id>c33e9f17-7b1e-4e9c-ad8c-5ed254ed751e</d2p1:Id>
        <d2p1:MimeType>sample string 2</d2p1:MimeType>
        <d2p1:Source>sample string 6</d2p1:Source>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:Image>
      <d2p1:Metadata>
        <d2p1:Type>sample string 1</d2p1:Type>
        <d2p1:Uri>sample string 2</d2p1:Uri>
      </d2p1:Metadata>
      <d2p1:PermitirAdsense>true</d2p1:PermitirAdsense>
      <d2p1:Place>sample string 11</d2p1:Place>
      <d2p1:PublishedDate>2017-08-24T01:50:24.9366726-03:00</d2p1:PublishedDate>
      <d2p1:Quote>sample string 10</d2p1:Quote>
      <d2p1:ReleaseId>2</d2p1:ReleaseId>
      <d2p1:Summary>sample string 5</d2p1:Summary>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:UpdatedDate>2017-08-24T01:50:24.9366726-03:00</d2p1:UpdatedDate>
      <d2p1:Url>sample string 8</d2p1:Url>
      <d2p1:VideoUrl xmlns:d4p1="http://schemas.datacontract.org/2004/07/Dino.Infrastructure.Contracts.Data">
        <d4p1:Descricao>sample string 2</d4p1:Descricao>
        <d4p1:Url>sample string 1</d4p1:Url>
      </d2p1:VideoUrl>
      <d2p1:WebsiteUrl>sample string 12</d2p1:WebsiteUrl>
    </d2p1:NewsModel>
    <d2p1:NewsModel>
      <d2p1:Author>sample string 1</d2p1:Author>
      <d2p1:Body>sample string 4</d2p1:Body>
      <d2p1:Categories>
        <d2p1:NewsCategoryModel>
          <d2p1:Metadata>
            <d2p1:Type>sample string 1</d2p1:Type>
            <d2p1:Uri>sample string 2</d2p1:Uri>
          </d2p1:Metadata>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Slug>sample string 2</d2p1:Slug>
        </d2p1:NewsCategoryModel>
        <d2p1:NewsCategoryModel>
          <d2p1:Metadata>
            <d2p1:Type>sample string 1</d2p1:Type>
            <d2p1:Uri>sample string 2</d2p1:Uri>
          </d2p1:Metadata>
          <d2p1:Name>sample string 1</d2p1:Name>
          <d2p1:Slug>sample string 2</d2p1:Slug>
        </d2p1:NewsCategoryModel>
      </d2p1:Categories>
      <d2p1:Image>
        <d2p1:Alt>sample string 4</d2p1:Alt>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:Id>c33e9f17-7b1e-4e9c-ad8c-5ed254ed751e</d2p1:Id>
        <d2p1:MimeType>sample string 2</d2p1:MimeType>
        <d2p1:Source>sample string 6</d2p1:Source>
        <d2p1:Url>sample string 3</d2p1:Url>
      </d2p1:Image>
      <d2p1:Metadata>
        <d2p1:Type>sample string 1</d2p1:Type>
        <d2p1:Uri>sample string 2</d2p1:Uri>
      </d2p1:Metadata>
      <d2p1:PermitirAdsense>true</d2p1:PermitirAdsense>
      <d2p1:Place>sample string 11</d2p1:Place>
      <d2p1:PublishedDate>2017-08-24T01:50:24.9366726-03:00</d2p1:PublishedDate>
      <d2p1:Quote>sample string 10</d2p1:Quote>
      <d2p1:ReleaseId>2</d2p1:ReleaseId>
      <d2p1:Summary>sample string 5</d2p1:Summary>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:UpdatedDate>2017-08-24T01:50:24.9366726-03:00</d2p1:UpdatedDate>
      <d2p1:Url>sample string 8</d2p1:Url>
      <d2p1:VideoUrl xmlns:d4p1="http://schemas.datacontract.org/2004/07/Dino.Infrastructure.Contracts.Data">
        <d4p1:Descricao>sample string 2</d4p1:Descricao>
        <d4p1:Url>sample string 1</d4p1:Url>
      </d2p1:VideoUrl>
      <d2p1:WebsiteUrl>sample string 12</d2p1:WebsiteUrl>
    </d2p1:NewsModel>
  </Items>
  <PageIndex>1</PageIndex>
  <PageSize>2</PageSize>
  <Total>3</Total>
</PagedListResultOfNewsModelBrRlwU_Pn>