quotations
Save a quotation (returns existing if duplicate)
Changed onpost/api/books/{slug}/quotations
Request
- The document declares no server URL.
- Authnone declared
Path parameters
slug, string required
Book slug
Request body
Create Quotation Request 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
Create Quotation Response required
created, boolean required
quotation, Quotation Response required
Changes
- breaking
request property
sentence_kindwas restricted to a list of enum values - warning
added the new
bodyenum value to thequotation/sentence_kindresponse property for the response status - warning
added the new
figureenum value to thequotation/sentence_kindresponse property for the response status
4 more changes in this revision
- breaking