GET v2/news/{id}/{partner}?isBodyHtml={isBodyHtml}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
partner

string

Required

id

integer

Required

isBodyHtml

boolean

Default value is True

Body Parameters

None.

Response Information

Resource Description

ItemResultOfNewsModel
NameDescriptionTypeAdditional information
Item

NewsModel

None.

Success

boolean

None.

ErrorMessage

string

None.

Status

ResultStatus

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "$id": "2",
    "Author": "sample string 1",
    "ReleaseId": 2,
    "Title": "sample string 3",
    "Body": "sample string 4",
    "Summary": "sample string 5",
    "Image": {
      "$id": "3",
      "Id": "d6b3ab0c-9bce-492f-b582-bdc78ea69e94",
      "MimeType": "sample string 2",
      "Url": "sample string 3",
      "Alt": "sample string 4",
      "Description": "sample string 5",
      "Source": "sample string 6"
    },
    "PublishedDate": "2017-12-14T07:48:20.2820993-02:00",
    "UpdatedDate": "2017-12-14T07:48:20.2820993-02: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"
  },
  "Success": true,
  "ErrorMessage": "sample string 2",
  "Status": 0
}

application/xml, text/xml

Sample:
<ItemResultOfNewsModelBrRlwU_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 2</ErrorMessage>
  <Status>Success</Status>
  <Success>true</Success>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/Dino.API.Models">
    <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>d6b3ab0c-9bce-492f-b582-bdc78ea69e94</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-12-14T07:48:20.2820993-02: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-12-14T07:48:20.2820993-02:00</d2p1:UpdatedDate>
    <d2p1:Url>sample string 8</d2p1:Url>
    <d2p1:VideoUrl xmlns:d3p1="http://schemas.datacontract.org/2004/07/Dino.Infrastructure.Contracts.Data">
      <d3p1:Descricao>sample string 2</d3p1:Descricao>
      <d3p1:Url>sample string 1</d3p1:Url>
    </d2p1:VideoUrl>
    <d2p1:WebsiteUrl>sample string 12</d2p1:WebsiteUrl>
  </Item>
</ItemResultOfNewsModelBrRlwU_Pn>