GET api/News/{ID}?CountryID={CountryID}&MediaID={MediaID}&LessThan={LessThan}&Quant={Quant}&PublishDate={PublishDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CountryID

integer

Required

MediaID

integer

Required

LessThan

boolean

Required

ID

integer

Required

Quant

integer

Required

PublishDate

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of NewsEntry
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

None.

Summary

string

None.

Media

string

None.

Url

string

None.

PostDate

date

None.

MediaID

integer

None.

CountryID

integer

None.

isTopPick

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Title": "sample string 2",
    "Summary": "sample string 3",
    "Media": "sample string 4",
    "Url": "sample string 5",
    "PostDate": "2018-12-16T16:57:43.0068666+00:00",
    "MediaID": 7,
    "CountryID": 8,
    "isTopPick": true
  },
  {
    "ID": 1,
    "Title": "sample string 2",
    "Summary": "sample string 3",
    "Media": "sample string 4",
    "Url": "sample string 5",
    "PostDate": "2018-12-16T16:57:43.0068666+00:00",
    "MediaID": 7,
    "CountryID": 8,
    "isTopPick": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfNewsEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tutorial2Webservice.Controllers">
  <NewsEntry>
    <CountryID>8</CountryID>
    <ID>1</ID>
    <Media>sample string 4</Media>
    <MediaID>7</MediaID>
    <PostDate>2018-12-16T16:57:43.0068666+00:00</PostDate>
    <Summary>sample string 3</Summary>
    <Title>sample string 2</Title>
    <Url>sample string 5</Url>
    <isTopPick>true</isTopPick>
  </NewsEntry>
  <NewsEntry>
    <CountryID>8</CountryID>
    <ID>1</ID>
    <Media>sample string 4</Media>
    <MediaID>7</MediaID>
    <PostDate>2018-12-16T16:57:43.0068666+00:00</PostDate>
    <Summary>sample string 3</Summary>
    <Title>sample string 2</Title>
    <Url>sample string 5</Url>
    <isTopPick>true</isTopPick>
  </NewsEntry>
</ArrayOfNewsEntry>