POST api/YoungReporterV770/SubmitArticle
投稿
Request Information
URI Parameters
None.
Body Parameters
ZaiMieApp.WebApi.ViewModel.Young.ReporterArticleView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| reporterId |
小记者id |
integer |
None. |
| articleId |
被选为稿子的id(为0 则没有被采纳) |
integer |
None. |
| state |
状态 (1-待采纳 2-未采纳 3-已采纳) |
integer |
None. |
| title |
标题 |
string |
None. |
| teacher |
指导老师 |
string |
None. |
| author |
作者 |
string |
None. |
| phone |
联系电话 |
string |
None. |
| content |
内容 |
string |
None. |
| resource |
资源(json数据{imageUrl,videoFaceImg,videoUrl,ratio,type}) |
string |
None. |
| type |
类型 1-文章 2-图集 3-视频 |
integer |
None. |
| subjectId |
主题Id |
integer |
None. |
| createDate | string |
None. |
|
| article |
作品关联的稿件 |
ZaiMieApp.WebApi.ViewModel.V600.Article |
None. |
| reporter |
小记者详情 |
ZaiMieApp.WebApi.ViewModel.Young.ReporterView |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ZaiMieApp.WebApi.ViewModel.ResultMsg| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| code | integer |
None. |
|
| addcoin |
赠送的金币 |
integer |
None. |
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"code": 2,
"addcoin": 3,
"message": "sample string 4"
}
application/xml, text/xml
Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel"> <addcoin>3</addcoin> <code>2</code> <message>sample string 4</message> <success>true</success> </ResultMsg>