Skip to content

api/citation: Return info about citation metadata in endpoint responses

Citation endpoints now return a JSON object containing:

  • a formatted citation string in BibTex format

  • the qualified SWHID of the source for intrinsic citation metadata (citation.cff or codemeta.json file)

  • the URL to fetch the raw bytes of the intrinsic citation metadata

This is a rework of !1325 (closed) who was only adding URL to fetch raw bytes of intrinsic citation metadata. Returning a qualified SWHID for the intrinsic citation metadata enables to browse it in the context it was found.

Merge request reports