POST /:country/listings/:id/reviews¶
Add a new review to an existing listing.
Body Parameters¶
The message body should contain a populated Review model.
The id property should be omitted, since it is populated by Opendi and returned in the response.
Response¶
On success returns HTTP 201 Created with the newly created Review model.
On error, returns an Error model.
Example¶
POST https://api.opendi.com/de/listings/5194891/reviews
{
"source_id": "11031",
"reviewer": "The Dude",
"reviewed": "",
"title": "This is the title",
"text": "And the complete text of the review goes here.",
"rating": 5,
"date_time": "2009-09-22T09:01:25+01:00"
}
201 Created
{
"id": "561",
"source_id": "11031",
"reviewer": "The Dude",
"reviewed": "",
"title": "This is the title",
"text": "And the complete text of the review goes here.",
"rating": 5,
"date_time": "2009-09-22T09:01:25+01:00"
}