POST api/1/Reviews/PostVote

Posts a new vote on a review identified in the ReviewPostVoteDTO object. The review / vote must belong to the application identified by the calling URL.

Request Information

URI Parameters

None.

Body Parameters

ReviewPostVoteDTO
NameDescriptionTypeAdditional information
ReviewID

The ID of the review for which to submit a vote.

integer

Required

UserToken

The user's auth token issued by the server.

string

Required

VoteValue

The value indicating an up or down vote. Valid values are 1 and -1.

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "ReviewID": 1,
  "UserToken": "sample string 2",
  "VoteValue": 3
}

application/xml, text/xml

Sample:
<ReviewPostVoteDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.Web.api._1.DTO">
  <ReviewID>1</ReviewID>
  <UserToken>sample string 2</UserToken>
  <VoteValue>3</VoteValue>
</ReviewPostVoteDTO>

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

Response Information

Resource Description

ReviewPoco
NameDescriptionTypeAdditional information
UserToken

string

None.

ID

integer

None.

Application_ResourceID

integer

None.

UserID

integer

None.

TagLine

string

None.

Text

string

None.

RatingValue

integer

None.

Likes

integer

None.

DisLikes

integer

None.

IsFlagged

boolean

None.

IsDeleted

boolean

None.

IsApproved

boolean

None.

DateAdded

date

None.

AdminReply

string

None.

UserDisplayName

string

None.

UserDisplayImage

string

None.

IsMine

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "UserDisplayName": "sample string 1",
  "UserDisplayImage": "sample string 2",
  "IsMine": true,
  "UserToken": "sample string 1",
  "ID": 2,
  "Application_ResourceID": 3,
  "UserID": 1,
  "TagLine": "sample string 4",
  "Text": "sample string 5",
  "RatingValue": 6,
  "Likes": 7,
  "DisLikes": 8,
  "IsFlagged": true,
  "IsDeleted": true,
  "IsApproved": true,
  "DateAdded": "2018-12-11T03:29:15.3078365-06:00",
  "AdminReply": "sample string 13"
}

application/xml, text/xml

Sample:
<ReviewPoco xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.DataAccess">
  <AdminReply>sample string 13</AdminReply>
  <Application_ResourceID>3</Application_ResourceID>
  <DateAdded>2018-12-11T03:29:15.3078365-06:00</DateAdded>
  <DisLikes>8</DisLikes>
  <ID>2</ID>
  <IsApproved>true</IsApproved>
  <IsDeleted>true</IsDeleted>
  <IsFlagged>true</IsFlagged>
  <IsMine>true</IsMine>
  <Likes>7</Likes>
  <RatingValue>6</RatingValue>
  <TagLine>sample string 4</TagLine>
  <Text>sample string 5</Text>
  <UserDisplayImage>sample string 2</UserDisplayImage>
  <UserDisplayName>sample string 1</UserDisplayName>
  <UserID>1</UserID>
  <UserToken>sample string 1</UserToken>
</ReviewPoco>

text/javascript, application/javascript, application/json-p

Sample:
({"UserDisplayName":"sample string 1","UserDisplayImage":"sample string 2","IsMine":true,"UserToken":"sample string 1","ID":2,"Application_ResourceID":3,"UserID":1,"TagLine":"sample string 4","Text":"sample string 5","RatingValue":6,"Likes":7,"DisLikes":8,"IsFlagged":true,"IsDeleted":true,"IsApproved":true,"DateAdded":"2018-12-11T03:29:15.3078365-06:00","AdminReply":"sample string 13"});