POST api/News?displayLanguage={displayLanguage}&n_items={n_items}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
displayLanguage | DisplayLanguage |
Required |
|
n_items | integer |
Default value is 5 |
Body Parameters
None.
Response Information
Resource Description
Collection of NewsObjectName | Description | Type | Additional information |
---|---|---|---|
Date | date |
None. |
|
Title | string |
None. |
|
EndDate | date |
None. |
|
ImagePath | string |
None. |
|
PageLink | string |
None. |
|
Description | string |
None. |
|
Order | integer |
None. |
|
AllHtml | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Date": "2024-12-02T11:26:16.6886261+03:00", "Title": "sample string 1", "EndDate": "2024-12-02T11:26:16.6886261+03:00", "ImagePath": "sample string 2", "PageLink": "sample string 3", "Description": "sample string 4", "Order": 5, "AllHtml": "sample string 6" }, { "Date": "2024-12-02T11:26:16.6886261+03:00", "Title": "sample string 1", "EndDate": "2024-12-02T11:26:16.6886261+03:00", "ImagePath": "sample string 2", "PageLink": "sample string 3", "Description": "sample string 4", "Order": 5, "AllHtml": "sample string 6" } ]
application/xml, text/xml
Sample:
<ArrayOfNewsController.NewsObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SesricContentAPIV3.Controllers"> <NewsController.NewsObject> <AllHtml>sample string 6</AllHtml> <Date>2024-12-02T11:26:16.6886261+03:00</Date> <Description>sample string 4</Description> <EndDate>2024-12-02T11:26:16.6886261+03:00</EndDate> <ImagePath>sample string 2</ImagePath> <Order>5</Order> <PageLink>sample string 3</PageLink> <Title>sample string 1</Title> </NewsController.NewsObject> <NewsController.NewsObject> <AllHtml>sample string 6</AllHtml> <Date>2024-12-02T11:26:16.6886261+03:00</Date> <Description>sample string 4</Description> <EndDate>2024-12-02T11:26:16.6886261+03:00</EndDate> <ImagePath>sample string 2</ImagePath> <Order>5</Order> <PageLink>sample string 3</PageLink> <Title>sample string 1</Title> </NewsController.NewsObject> </ArrayOfNewsController.NewsObject>