POST /reviews

Creates a Review resource.

Body Required

The new Review resource

  • rating integer
  • body string
  • author string
  • publicationDate string(date-time)
  • book string(iri-reference) | null

Body Required

The new Review resource

  • rating integer
  • body string
  • author string
  • publicationDate string(date-time)
  • book string(iri-reference) | null

Body Required

The new Review resource

  • rating integer
  • body string
  • author string
  • publicationDate string(date-time)
  • book string(iri-reference) | null

Responses

  • Review resource created

    Hide response attributes Show response attributes object
    • @context string | object

      One of:
    • @id string
    • @type string
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
  • 400

    Invalid input

  • 422

    Unprocessable entity

POST /reviews
curl \
 --request POST 'http://api.example.com/reviews' \
 --header "Content-Type: application/ld+json"
curl \
 --request POST 'http://api.example.com/reviews' \
 --header "Content-Type: application/json" \
 --data '{"rating":42,"body":"string","author":"string","publicationDate":"2026-05-04T09:42:00Z","book":"string"}'
curl \
 --request POST 'http://api.example.com/reviews' \
 --header "Content-Type: text/html"
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
Request examples
{
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
Response examples (201)
{
  "@context": "string",
  "@id": "string",
  "@type": "string",
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}
Response examples (201)
{
  "id": 42,
  "rating": 42,
  "body": "string",
  "author": "string",
  "publicationDate": "2026-05-04T09:42:00Z",
  "book": "string"
}