POST api/Likes/New

Request Information

URI Parameters

None.

Body Parameters

NewLike
NameDescriptionTypeAdditional information
LikeType

LikeType

None.

PostId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LikeType": 0,
  "PostId": 1
}

application/xml, text/xml

Sample:
<NewLike xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models">
  <LikeType>LIKE</LikeType>
  <PostId>1</PostId>
</NewLike>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LikeResult
NameDescriptionTypeAdditional information
token

string

None.

status

string

None.

message

string

None.

LikeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "status": "sample string 2",
  "message": "sample string 3",
  "LikeId": 4
}

application/xml, text/xml

Sample:
<Status.LikeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethos.Models">
  <LikeId>4</LikeId>
  <message>sample string 3</message>
  <status>sample string 2</status>
  <token>sample string 1</token>
</Status.LikeResult>