works

Get Work By Text

Given a text id, return the Work it belongs to + all its witnesses.

Powers the reader's "其他版本 / 对照本" panel. 404 if the text is not yet assigned to any work (e.g. imported after the last build_works run).

get/api/works/by-text/{text_id}

Request

  • Base URL: https://fojin.app (the document declares no server; this is the origin it was published from)
  • URL: https://fojin.app/api/works/by-text/{text_id}
  • Auth: none declared

Path parameters

text_idinteger required

Response

Successful Response

slugstring required
title_primarystring required
title_sastring nullable
witness_countinteger

Changes

No recorded changes to this operation across all 1 revision of this API.