POST api/comment/{appid}/{articleId}

用户发布评论

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appid

appid

string

Required

articleId

文章id

string

Required

Body Parameters

发布评论的用户凭据

AppMemberPostComment
NameDescriptionTypeAdditional information
token

string

None.

comment

string

None.

debug

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "comment": "sample string 2",
  "debug": true
}

application/xml, text/xml

Sample:
<AppMemberPostComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin.Models">
  <comment>sample string 2</comment>
  <debug>true</debug>
  <token>sample string 1</token>
</AppMemberPostComment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AjaxReturn

AjaxReturn
NameDescriptionTypeAdditional information
error

boolean

None.

message

string

None.

url

string

None.

data

Object

None.

exceptions

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "error": true,
  "message": "sample string 2",
  "url": "sample string 3",
  "data": {},
  "exceptions": {}
}

application/xml, text/xml

Sample:
<AjaxReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCoin">
  <additional />
  <error>true</error>
  <exceptions />
  <message>sample string 2</message>
  <url>sample string 3</url>
</AjaxReturn>