GET api/Posts/10AllSitesLastNews
Get 10 last news of Site with given category
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of GettedBotPostName | Description | Type | Additional information |
---|---|---|---|
News | LightPost |
None. |
|
NewsImage | string |
None. |
|
Author | LightEmployes |
None. |
|
AvatarAuthor | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "News": { "PostId": 1, "Title": "sample string 2", "Txt": "sample string 3", "likecount": 4, "PublishedDate": "2025-08-14T03:18:45.0099755+00:00" }, "NewsImage": "sample string 1", "Author": { "EmpId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Mail": "sample string 4" }, "AvatarAuthor": "sample string 2" }, { "News": { "PostId": 1, "Title": "sample string 2", "Txt": "sample string 3", "likecount": 4, "PublishedDate": "2025-08-14T03:18:45.0099755+00:00" }, "NewsImage": "sample string 1", "Author": { "EmpId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Mail": "sample string 4" }, "AvatarAuthor": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfGettedBotPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models"> <GettedBotPost> <Author> <EmpId>1</EmpId> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <Mail>sample string 4</Mail> </Author> <AvatarAuthor>sample string 2</AvatarAuthor> <News> <PostId>1</PostId> <PublishedDate>2025-08-14T03:18:45.0099755+00:00</PublishedDate> <Title>sample string 2</Title> <Txt>sample string 3</Txt> <likecount>4</likecount> </News> <NewsImage>sample string 1</NewsImage> </GettedBotPost> <GettedBotPost> <Author> <EmpId>1</EmpId> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <Mail>sample string 4</Mail> </Author> <AvatarAuthor>sample string 2</AvatarAuthor> <News> <PostId>1</PostId> <PublishedDate>2025-08-14T03:18:45.0099755+00:00</PublishedDate> <Title>sample string 2</Title> <Txt>sample string 3</Txt> <likecount>4</likecount> </News> <NewsImage>sample string 1</NewsImage> </GettedBotPost> </ArrayOfGettedBotPost>