Creates a Review resource.

POST /reviews

Creates a Review resource.

Body Required

The new Review resource

Responses

POST /reviews
curl \
 -X POST http://api.example.com/reviews \
 -H "Content-Type: application/json" \
 -d '{"rating":42,"body":"string","author":"string","publicationDate":"2023-05-04T09:42:00+00:00","book":"string"}'
Request example
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "book": "string"
}
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "book": "string"
}
Response examples (201)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2023-05-04T09:42:00+00:00",
  "book": "string"
}
Response examples (201)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2025-05-04T09:42:00Z",
  "book": "string"
}