POST api/comments/like

Request Information

URI Parameters

None.

Body Parameters

LikeCommentRequest
NameDescriptionTypeAdditional information
CommentID

string

None.

Like

boolean

None.

UserId

integer

None.

Likes

integer

None.

Unlikes

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "commentID": "sample string 1",
  "like": true,
  "userId": 2,
  "likes": 3,
  "unlikes": 4
}

application/xml, text/xml

Sample:
<LikeCommentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cultural.Common">
  <CommentID>sample string 1</CommentID>
  <Like>true</Like>
  <Likes>3</Likes>
  <Unlikes>4</Unlikes>
  <UserId>2</UserId>
</LikeCommentRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StarAPIResponseOfString
NameDescriptionTypeAdditional information
Status

string

None.

Result

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.