resources
Create a resource. Any authenticated user may submit; editors (`ResourcesManage`) publish immediately, everyone else's suggestion enters the review queue as `pending` until an editor approves it.
Changed onpost/api/books/{slug}/resources
Request
- The document declares no server URL.
- Authnone declared
Path parameters
slug, string required
Book slug
Request body
Create Resource Request required
admin_notes, string nullable
editor_note, string nullable
is_featured, boolean nullable
quoted_text, string nullable
resource_type, 'verbatim' | 'paraphrase' | 'allusion' required
Stored as the Postgres enum resource_type.
scope, 'work' | 'language' | 'edition' nullable
Stored as the Postgres enum resource_scope (ADR 0008).
sentence_end, integer nullable
sentence_kind, 'body' | 'footnote' | 'figure' required
Stored as the Postgres enum sentence_kind.
sentence_start, integer required
source_id, string nullable
source_location_freeform, string nullable
source_page_end, integer nullable
source_page_start, integer nullable
verbatim_kind, 'entirety' | 'fragmentary' nullable
Stored as the Postgres enum verbatim_kind.
Response
Resource created or submitted for review
Resource List Response required
resources, Resource Response[] required
Changes
- info
added the optional property
resources/items/source/oneOf[#/components/schemas/SourceResponse]/original_year_circato the response with the status
- info
- breaking
request property
resource_typewas restricted to a list of enum values - breaking
request property
sentence_kindwas restricted to a list of enum values
44 more changes in this revision
- breaking