POST api/News
添加News
Request Information
URI Parameters
None.
Body Parameters
d=[Title=[新闻标题,string],Content=[内容,string],ImgUrl=[图片地址,string],Marking=[分类编码,工会新闻:1002000000000000,基层速递:1024000000000000,集团热点:1026000000000000,long]]
UploadParametersName | Description | Type | Additional information |
---|---|---|---|
u |
用户ID StaffID |
integer |
None. |
t |
全局数据(加密) 1.单点登陆格式:[[用户密码,加密]|[requestTime]|[设备标识],加密] 2.其他数据通讯格式:[[用户ID]|[用户密码,加密]|[requestTime]|[设备标识],加密] |
string |
Required |
d |
数据参数 加密(单点登陆除外) 不同API,参数格式不同 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "u": 1, "t": "sample string 2", "d": "sample string 3" }
application/xml, text/xml
Sample:
<UploadParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMAPI.Models"> <d>sample string 3</d> <t>sample string 2</t> <u>1</u> </UploadParameters>
application/x-www-form-urlencoded
Sample:
u=Value&t=Value&d=Value
Response Information
Resource Description
添加News
ReApiNewsPostName | Description | Type | Additional information |
---|---|---|---|
IsSucceed |
新闻是否创建成功 |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsSucceed": true }
application/xml, text/xml
Sample:
<ReApiNewsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Care365_V2.Model.News"> <IsSucceed>true</IsSucceed> </ReApiNewsPost>