GET api/News/GetNewsfeed
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
ResultModelOfListOfNewsModelName | Description | Type | Additional 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>