POST api/1/Reviews/Post

Posts a new review to the resource identified in the ReviewPostDTO object. The resource must belong to the application identified by the calling URL.

Request Information

URI Parameters

None.

Body Parameters

ReviewPostDTO
NameDescriptionTypeAdditional information
Text

The text of the review.

string

Required

TagLine

A shorter piece of text describing the review.

string

Required

UserToken

The user's UserToken issued by the auth mechanism.

string

Required

RatingValue

The rqating givin to the resource.

integer

Required

ResourceKey

The key for this resource.

string

Required

ResourcePath

The URL / path to this resource.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Text": "sample string 1",
  "TagLine": "sample string 2",
  "UserToken": "sample string 3",
  "RatingValue": 4,
  "ResourceKey": "sample string 5",
  "ResourcePath": "sample string 6"
}

application/xml, text/xml

Sample:
<ReviewPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.Web.api._1.DTO">
  <RatingValue>4</RatingValue>
  <ResourceKey>sample string 5</ResourceKey>
  <ResourcePath>sample string 6</ResourcePath>
  <TagLine>sample string 2</TagLine>
  <Text>sample string 1</Text>
  <UserToken>sample string 3</UserToken>
</ReviewPostDTO>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.