quotations

Save a quotation (returns existing if duplicate)

Changed on
post/api/books/{slug}/quotations

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

slug, string required

Book slug

Request body

CreateQuotationRequest required
sentence_end, integer nullable
sentence_kind, 'body' | 'footnote' | 'figure' required

Stored as the Postgres enum sentence_kind.

sentence_start, integer required

Response

Quotation saved

CreateQuotationResponse required
created, boolean required
quotation, QuotationResponse required

Changes

    • breaking

      request property sentence_kind was restricted to a list of enum values

    • warning

      added the new body enum value to the quotation/sentence_kind response property for the response status

    • warning

      added the new figure enum value to the quotation/sentence_kind response property for the response status

    4 more changes in this revision