POST api/ng/circle/submitpostlike

Request Information

URI Parameters

None.

Body Parameters

LikePostEntry
NameDescriptionTypeAdditional information
PostID

integer

None.

LikeTypeID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PostID": 1,
  "LikeTypeID": 2
}

application/xml, text/xml

Sample:
<LikePostEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <LikeTypeID>2</LikeTypeID>
  <PostID>1</PostID>
</LikePostEntry>

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

Response Information

Resource Description

LikeSubmitResult
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

LikeID

integer

None.

DateSubmitted

date

None.

ErrorType

UserPostError

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "LikeID": 2,
  "DateSubmitted": "2021-04-19T21:46:49.9467292-04:00",
  "ErrorType": 0
}

application/xml, text/xml

Sample:
<LikeSubmitResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <DateSubmitted>2021-04-19T21:46:49.9467292-04:00</DateSubmitted>
  <ErrorType>NoError</ErrorType>
  <IsSuccess>true</IsSuccess>
  <LikeID>2</LikeID>
</LikeSubmitResult>