GET api/LatestNews/GetLatestNews

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of LatestNews
NameDescriptionTypeAdditional information
Id

integer

None.

NewsTitle

string

Required

Header

string

Required

NewsText

string

Required

ImageUri

string

None.

ImageId

string

Required

createdDate

string

None.

Priority

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "NewsTitle": "sample string 2",
    "Header": "sample string 3",
    "NewsText": "sample string 4",
    "ImageUri": "sample string 5",
    "ImageId": "sample string 6",
    "createdDate": "sample string 7",
    "Priority": 8
  },
  {
    "Id": 1,
    "NewsTitle": "sample string 2",
    "Header": "sample string 3",
    "NewsText": "sample string 4",
    "ImageUri": "sample string 5",
    "ImageId": "sample string 6",
    "createdDate": "sample string 7",
    "Priority": 8
  }
]

application/xml, text/xml

Sample:
<ArrayOfLatestNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <LatestNews>
    <Header>sample string 3</Header>
    <Id>1</Id>
    <ImageId>sample string 6</ImageId>
    <ImageUri>sample string 5</ImageUri>
    <NewsText>sample string 4</NewsText>
    <NewsTitle>sample string 2</NewsTitle>
    <Priority>8</Priority>
    <createdDate>sample string 7</createdDate>
  </LatestNews>
  <LatestNews>
    <Header>sample string 3</Header>
    <Id>1</Id>
    <ImageId>sample string 6</ImageId>
    <ImageUri>sample string 5</ImageUri>
    <NewsText>sample string 4</NewsText>
    <NewsTitle>sample string 2</NewsTitle>
    <Priority>8</Priority>
    <createdDate>sample string 7</createdDate>
  </LatestNews>
</ArrayOfLatestNews>