GET news/public

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of NewsItem
NameDescriptionTypeAdditional information
ID

integer

None.

Body

string

None.

Date

integer

None.

Expires

integer

None.

FeaturedImage

string

None.

Title

string

None.

Category

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "body": "sample string 2",
    "date": 3,
    "expires": 4,
    "featuredImage": "sample string 5",
    "title": "sample string 6",
    "category": "sample string 7"
  },
  {
    "id": 1,
    "body": "sample string 2",
    "date": 3,
    "expires": 4,
    "featuredImage": "sample string 5",
    "title": "sample string 6",
    "category": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfNewsItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.General">
  <NewsItem>
    <Body>sample string 2</Body>
    <Category>sample string 7</Category>
    <Date>3</Date>
    <Expires>4</Expires>
    <FeaturedImage>sample string 5</FeaturedImage>
    <ID>1</ID>
    <Title>sample string 6</Title>
  </NewsItem>
  <NewsItem>
    <Body>sample string 2</Body>
    <Category>sample string 7</Category>
    <Date>3</Date>
    <Expires>4</Expires>
    <FeaturedImage>sample string 5</FeaturedImage>
    <ID>1</ID>
    <Title>sample string 6</Title>
  </NewsItem>
</ArrayOfNewsItem>