POST news/comment

Request Information

URI Parameters

None.

Body Parameters

CommentNewsViewModel
NameDescriptionTypeAdditional information
news_id

integer

None.

user_name

string

None.

user_head_image_path

string

None.

content

string

None.

parent_comment_id

integer

None.

client_id

integer

None.

shop_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "news_id": 1,
  "user_name": "sample string 2",
  "user_head_image_path": "sample string 3",
  "content": "sample string 4",
  "parent_comment_id": 5,
  "client_id": 6,
  "shop_id": 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 'CommentNewsViewModel'.

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
}