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 on
post/api/books/{slug}/resources

Request

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

Path parameters

slug, string required

Book slug

Request body

CreateResourceRequest 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

ResourceListResponse required
resources, ResourceResponse[] required

Changes

    • info

      added the optional property resources/items/source/oneOf[#/components/schemas/SourceResponse]/original_year_circa to the response with the status

    • breaking

      request property resource_type was restricted to a list of enum values

    • breaking

      request property sentence_kind was restricted to a list of enum values

    44 more changes in this revision