POST api/Comment/postComment

保存评论

Request Information

URI Parameters

None.

Body Parameters

postCommentModel
NameDescriptionTypeAdditional information
userid

integer

None.

parentUserId

回复对像的userid

integer

None.

dataId

integer

None.

parentId

integer

None.

code

integer

None.

type

string

None.

content

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userid": 1,
  "parentUserId": 2,
  "dataId": 3,
  "parentId": 4,
  "code": 5,
  "type": "sample string 6",
  "content": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'postCommentModel'.

Response Information

Resource Description

保存评论

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.