GET api/v1/Getnewslist?pageindex={pageindex}&keyword={keyword}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pageindex | integer |
Default value is 1 |
|
| keyword | string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
Collection of news| Name | Description | Type | Additional information |
|---|---|---|---|
| title | string |
None. |
|
| link | string |
None. |
|
| published | string |
None. |
|
| content | string |
None. |
|
| authorname | string |
None. |
|
| authoremail | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"title": "sample string 1",
"link": "sample string 2",
"published": "sample string 3",
"content": "sample string 4",
"authorname": "sample string 5",
"authoremail": "sample string 6"
},
{
"title": "sample string 1",
"link": "sample string 2",
"published": "sample string 3",
"content": "sample string 4",
"authorname": "sample string 5",
"authoremail": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfnews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIBridge">
<news>
<authoremail>sample string 6</authoremail>
<authorname>sample string 5</authorname>
<content>sample string 4</content>
<link>sample string 2</link>
<published>sample string 3</published>
<title>sample string 1</title>
</news>
<news>
<authoremail>sample string 6</authoremail>
<authorname>sample string 5</authorname>
<content>sample string 4</content>
<link>sample string 2</link>
<published>sample string 3</published>
<title>sample string 1</title>
</news>
</ArrayOfnews>