Review Properties

Each review has the following properties and is accessed via /api/review. Complete details in ReviewProperties.

id

The unique id for this review. It will never change.

wing_object_type

review.

date_created

A date when the review was created.

date_updated

A date when the review was last updated.

review

A block of text, not to exceed 65000 characters.

rating

An integer between 1 and 5, 5 being best.

game_id

A Game id. The unique id of a Game that this review is about.

user_id

A User id. The unique id of a User that created this review.

Related Objects

user

The User that this review is created by.

game

The Game that this review is about.

Review Methods

The methods used to fetch and manipulate reviews.

Create Review

 POST /api/review
session_id

Required. The unique session id provided by a Session method.

user_id

Required.

game_id

Required.

rating

Optional.

review

Optional.

Returns:

 {
   "id" : "xxx",
   "rating" : 3,
   ...
 }

Update Review

 PUT /api/review/xxx

See Create Review for details.

Delete Review

 DELETE /api/review/xxx
session_id

Required. The unique session id provided by a Session method.

Returns:

 {
   "success" : 1
 }

Fetch Review

 GET /api/review/xxx
session_id

Optional. The unique session id provided by a Session method.

_include_relationships

Optional. See "Relationships" in Intro and Review Relationships above for details.

Returns:

 {
   "id" : "xxx",
   "rating" : 3,
   ...
 }

List Reviews

 GET /api/review

Returns a list of reviews sorted by date created.

^ Back to Top ^