POST api/News/ReadNews

Request Information

URI Parameters

None.

Body Parameters

NewsModel
NameDescriptionTypeAdditional information
Title

string

None.

Link

string

None.

Description

string

None.

PubDate

string

None.

Guid

string

None.

CoverImage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "Link": "sample string 2",
  "Description": "sample string 3",
  "PubDate": "sample string 4",
  "Guid": "sample string 5",
  "CoverImage": "sample string 6"
}

application/xml, text/xml

Sample:
<NewsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.NewsModels">
  <CoverImage>sample string 6</CoverImage>
  <Description>sample string 3</Description>
  <Guid>sample string 5</Guid>
  <Link>sample string 2</Link>
  <PubDate>sample string 4</PubDate>
  <Title>sample string 1</Title>
</NewsModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfListOfNewsModel
NameDescriptionTypeAdditional information
Data

Collection of NewsModel

None.

Status

boolean

None.

ErrorMessage

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Title": "sample string 1",
      "Link": "sample string 2",
      "Description": "sample string 3",
      "PubDate": "sample string 4",
      "Guid": "sample string 5",
      "CoverImage": "sample string 6"
    },
    {
      "Title": "sample string 1",
      "Link": "sample string 2",
      "Description": "sample string 3",
      "PubDate": "sample string 4",
      "Guid": "sample string 5",
      "CoverImage": "sample string 6"
    }
  ],
  "Status": true,
  "ErrorMessage": "sample string 2",
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<ResultModelOfArrayOfNewsModelbPXfgrnO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PEASmartPlus.MobileService.Models.NewsModels">
    <d2p1:NewsModel>
      <d2p1:CoverImage>sample string 6</d2p1:CoverImage>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Guid>sample string 5</d2p1:Guid>
      <d2p1:Link>sample string 2</d2p1:Link>
      <d2p1:PubDate>sample string 4</d2p1:PubDate>
      <d2p1:Title>sample string 1</d2p1:Title>
    </d2p1:NewsModel>
    <d2p1:NewsModel>
      <d2p1:CoverImage>sample string 6</d2p1:CoverImage>
      <d2p1:Description>sample string 3</d2p1:Description>
      <d2p1:Guid>sample string 5</d2p1:Guid>
      <d2p1:Link>sample string 2</d2p1:Link>
      <d2p1:PubDate>sample string 4</d2p1:PubDate>
      <d2p1:Title>sample string 1</d2p1:Title>
    </d2p1:NewsModel>
  </Data>
  <ErrorMessage>sample string 2</ErrorMessage>
  <Message>sample string 3</Message>
  <Status>true</Status>
</ResultModelOfArrayOfNewsModelbPXfgrnO>