GET api/v1/news?lastNewsId={lastNewsId}&take={take}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lastNewsId | integer |
None. |
|
| take | integer |
Default value is 10 |
Body Parameters
None.
Response Information
Resource Description
ApiNewsGet| Name | Description | Type | Additional information |
|---|---|---|---|
| found | boolean |
None. |
|
| count | integer |
None. |
|
| news | Collection of ApiNews |
None. |
Response Formats
application/json, text/json
Sample:
{
"found": true,
"count": 2,
"news": [
{
"id": 1,
"tags": [
"sample string 1",
"sample string 2"
],
"title": "sample string 2",
"text": "sample string 3",
"html": "sample string 4",
"date": "sample string 5",
"imgs": [
{
"title": "sample string 1",
"text": "sample string 2",
"url": "sample string 3"
},
{
"title": "sample string 1",
"text": "sample string 2",
"url": "sample string 3"
}
],
"url": "sample string 6",
"visiblehp": true
},
{
"id": 1,
"tags": [
"sample string 1",
"sample string 2"
],
"title": "sample string 2",
"text": "sample string 3",
"html": "sample string 4",
"date": "sample string 5",
"imgs": [
{
"title": "sample string 1",
"text": "sample string 2",
"url": "sample string 3"
},
{
"title": "sample string 1",
"text": "sample string 2",
"url": "sample string 3"
}
],
"url": "sample string 6",
"visiblehp": true
}
]
}