POST message/comment_course

评论课程

Request Information

URI Parameters

None.

Body Parameters

AddCommentViewModel
NameDescriptionTypeAdditional information
comment_id

integer

None.

course_id

integer

None.

comment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "comment_id": 1,
  "course_id": 1,
  "comment": "sample string 2"
}

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

Response Information

Resource Description

评论课程

BaseResponse
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "success": true
}