POST api/Article/getNewsInfo
article详情
Request Information
URI Parameters
None.
Body Parameters
BaseIdPost| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"tel": "sample string 2",
"token": "sample string 3",
"uid": 1
}
application/xml, text/xml
Sample:
<BaseIdPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <tel>sample string 2</tel> <token>sample string 3</token> <uid>1</uid> <id>1</id> </BaseIdPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
getNewsInfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| typename | string |
None. |
|
| title | string |
None. |
|
| content | string |
None. |
|
| imgarr | 数组: string |
None. |
|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"typename": "sample string 1",
"title": "sample string 2",
"content": "sample string 3",
"imgarr": [
"sample string 1",
"sample string 2"
],
"code": 4,
"msg": "sample string 5"
}
application/xml, text/xml
Sample:
<getNewsInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
<code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">4</code>
<msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 5</msg>
<content>sample string 3</content>
<imgarr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</imgarr>
<title>sample string 2</title>
<typename>sample string 1</typename>
</getNewsInfoResult>