GET v2/news/{id}/{partner}/legacy?isBodyHtml={isBodyHtml}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
partner | string |
Required |
|
id | integer |
Required |
|
isBodyHtml | boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
ItemResultOfNewsModelName | Description | Type | Additional 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": "2f88a421-9897-4a61-b901-d281f8f939af", "MimeType": "sample string 2", "Url": "sample string 3", "UrlDinoSocial": "sample string 4", "Alt": "sample string 5", "Description": "sample string 6", "Source": "sample string 7" }, "PublishedDate": "2024-11-21T06:08:33.7321216-03:00", "UpdatedDate": "2024-11-21T06:08:33.7321216-03:00", "Categories": [ { "$id": "4", "Name": "sample string 1", "Id": 2, "Slug": "sample string 3", "__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", "ExternalId": "sample string 13", "Updated": true, "UpdateImage": true, "DeletePost": true, "Tags": [ "sample string 1", "sample string 2" ] }, "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:Id>2</d2p1:Id> <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 3</d2p1:Slug> </d2p1:NewsCategoryModel> <d2p1:NewsCategoryModel> <d2p1:Id>2</d2p1:Id> <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 3</d2p1:Slug> </d2p1:NewsCategoryModel> </d2p1:Categories> <d2p1:DeletePost>true</d2p1:DeletePost> <d2p1:ExternalId>sample string 13</d2p1:ExternalId> <d2p1:Image> <d2p1:Alt>sample string 5</d2p1:Alt> <d2p1:Description>sample string 6</d2p1:Description> <d2p1:Id>2f88a421-9897-4a61-b901-d281f8f939af</d2p1:Id> <d2p1:MimeType>sample string 2</d2p1:MimeType> <d2p1:Source>sample string 7</d2p1:Source> <d2p1:Url>sample string 3</d2p1:Url> <d2p1:UrlDinoSocial>sample string 4</d2p1:UrlDinoSocial> </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>2024-11-21T06:08:33.7321216-03:00</d2p1:PublishedDate> <d2p1:Quote>sample string 10</d2p1:Quote> <d2p1:ReleaseId>2</d2p1:ReleaseId> <d2p1:Summary>sample string 5</d2p1:Summary> <d2p1:Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </d2p1:Tags> <d2p1:Title>sample string 3</d2p1:Title> <d2p1:UpdateImage>true</d2p1:UpdateImage> <d2p1:Updated>true</d2p1:Updated> <d2p1:UpdatedDate>2024-11-21T06:08:33.7321216-03: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>