GET api/1/Reviews?SortOrder={SortOrder}&ResourceKey={ResourceKey}&UserToken={UserToken}

Gets al the reviews for the resource identifed by the supplied resource key. The resource must belong to the application identified by the calling URL.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
SortOrder

The order for which to srt the reviews.

ReviewsSortOrderEnum

Required

ResourceKey

The key identifying the resource for which ti get reviews.

string

Required

UserToken

The user's auth token issued by the server.

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of 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:08:14.6316881-06:00",
    "AdminReply": "sample string 13"
  },
  {
    "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:08:14.6316881-06:00",
    "AdminReply": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfReviewPoco xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCS.DataAccess">
  <ReviewPoco>
    <AdminReply>sample string 13</AdminReply>
    <Application_ResourceID>3</Application_ResourceID>
    <DateAdded>2018-12-11T03:08:14.6316881-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>
  <ReviewPoco>
    <AdminReply>sample string 13</AdminReply>
    <Application_ResourceID>3</Application_ResourceID>
    <DateAdded>2018-12-11T03:08:14.6316881-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>
</ArrayOfReviewPoco>

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:08:14.6316881-06:00","AdminReply":"sample string 13"},{"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:08:14.6316881-06:00","AdminReply":"sample string 13"}]);