POST api/PostsV720/PostReply

评论帖子

Request Information

URI Parameters

None.

Body Parameters

评论提交模型

ZaiMieApp.WebApi.ViewModel.PostsReplyView
NameDescriptionTypeAdditional information
newspapergroupId

租户id

integer

None.

postsId

帖子id

integer

None.

replyId

回复的评论id

integer

None.

content

评论内容

string

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "newspapergroupId": 1,
  "postsId": 2,
  "replyId": 3,
  "content": "sample string 4",
  "sign": "sample string 5",
  "stamp": "sample string 6"
}

application/xml, text/xml

Sample:
<PostsReplyView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <sign>sample string 5</sign>
  <stamp>sample string 6</stamp>
  <content>sample string 4</content>
  <newspapergroupId>1</newspapergroupId>
  <postsId>2</postsId>
  <replyId>3</replyId>
</PostsReplyView>

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.PostsReplyView'.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultDataMsgOfZaiMieApp.WebApi.ViewModel.ReplyView
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

data

ZaiMieApp.WebApi.ViewModel.ReplyView

None.

addcoin

integer

None.

message

string

None.

page

integer

None.

allPage

integer

None.

Response 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.ReplyView'. Path 'data.posts.reply'.

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.ReplyView'. Path 'data.posts.reply'.

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.PostsView”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

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.PostsView”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。