GET /locationRatings/{locationId}/new
Creates a Location Rating object with all configured defaults set. This DOES NOT create a record in the
database. Instead, callers of this method can edit the returned object and then pass it back to the create
method to actually insert the record in the database.
Roles that can access this endpoint are Drivers.
Parameters
name |
description |
type |
default |
type |
locationId |
the id of the location being rated |
path
|
|
String
|
Result
RowLocationRating
of type:
application/xml
application/json
a RowLocationRating object with all appropriate defaults set
When the calling user has previously rated the specified location, the RowLocationRating instance that is
returned will include the values supplied on the most recent of their previous ratings for the location. The
questions included in the RowLocationRating instance will always be those currently marked for display. However,
if the most recent review provided an answer to any of those questions, those answers will be included.
Try It Out
Request