POST api/GovV720/SubmitPoliticsReply

发布评论

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.PoliticsReply
NameDescriptionTypeAdditional information
replyId

回复Id

integer

None.

newspapergroupId

租户Id

integer

None.

institution

机构

ZaiMieApp.WebApi.ViewModel.Institution

None.

politicsId

问政Id

integer

None.

content

回复内容

string

None.

createDate

创建时间

string

None.

replyPoliticsReplyId

被回评的评论Id

integer

None.

repliedUserinfo

被回评的用户

ZaiMieApp.WebApi.ViewModel.SimpleUserInfoView

None.

userinfo

用户

ZaiMieApp.WebApi.ViewModel.SimpleUserInfoView

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'ZaiMieApp.WebApi.ViewModel.Institution'. Path 'institution.subInstitutions'.

text/json

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'ZaiMieApp.WebApi.ViewModel.Institution'. Path 'institution.subInstitutions'.

application/xml

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “ZaiMieApp.WebApi.ViewModel.Institution”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'System.Net.Http.Formatting.XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “ZaiMieApp.WebApi.ViewModel.Institution”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ZaiMieApp.WebApi.ViewModel.PoliticsReply'.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional 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>