books

Bibliographic info for the "About this text" panel. With `?node=`, walks the toc-ancestor chain to surface the constituent work the reader is in (e.g. Genesis within KJV); otherwise returns the hosted book's source.

Changed on
get/api/books/{slug}/about

Request

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

Path parameters

slug, string required

Book slug

Query parameters

node, string

Active toc node slug for contextual resolution

Response

Bibliographic info for the active text

AboutThisTextResponse required

Resolved bibliographic info for the "About this text" panel.

Walks ancestors of the active toc node looking for the deepest toc_nodes.source_id and falls back to books.source_id. For Bible-shape works this lets the panel show info about the constituent book the reader is in (Genesis, Romans); for plain works (Kant) it always falls back to the hosted book's source.

about_text, string nullable

Editor's note for this hosted edition (free-form plain text). Mirrors books.about_text of the hosted book the reader is in (NOT walked across toc ancestors).

licence, string required

Rights summary for this hosted edition — books.licence, a short standout label ("Public Domain", "CC BY-NC-ND 4.0"). Like about_text, taken from the hosted book, not walked across toc ancestors.

resolved_from, string required

"node" when an ancestor toc_node supplied a source_id (Bible books-within-books); "book" when the resolver fell back to the hosted book's root source.

source, SourceResponse required
source_book, BookSummary nullable

Changes