Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/metadata.py
Show All 31 Lines | def api_raw_extrinsic_metadata_swhid(request, target): | ||||
.. http:get:: /api/1/raw-extrinsic-metadata/swhid/(target) | .. http:get:: /api/1/raw-extrinsic-metadata/swhid/(target) | ||||
Returns raw `extrinsic metadata <https://docs.softwareheritage.org/devel/glossary.html#term-extrinsic-metadata>`__ collected on a given object. | Returns raw `extrinsic metadata <https://docs.softwareheritage.org/devel/glossary.html#term-extrinsic-metadata>`__ collected on a given object. | ||||
:param string target: The core SWHID of the object whose metadata | :param string target: The core SWHID of the object whose metadata | ||||
should be returned | should be returned | ||||
:query string authority: A metadata authority identifier, formatted as | :query string authority: A metadata authority identifier, formatted as | ||||
``<type> <IRI>``. Required. | ``<type> <IRI>``. Required. | ||||
:query string after: An ISO representation of the minimum timestamp of metadata | :query string after: ISO8601 representation of the minimum timestamp of metadata | ||||
to fetch. Defaults to allowing all metadata. | to fetch. Defaults to allowing all metadata. | ||||
:query int limit: Maximum number of metadata objects to return. | :query int limit: Maximum number of metadata objects to return. | ||||
{common_headers} | {common_headers} | ||||
:>jsonarr string target: SWHID of the object described by this metadata | :>jsonarr string target: SWHID of the object described by this metadata | ||||
:>jsonarr string discovery_date: ISO8601 timestamp of the moment this | :>jsonarr string discovery_date: ISO8601/RFC3339 timestamp of the moment this | ||||
metadata was collected. | metadata was collected. | ||||
:>jsonarr object authority: authority this metadata is coming from | :>jsonarr object authority: authority this metadata is coming from | ||||
:>jsonarr object fetcher: tool used to fetch the metadata | :>jsonarr object fetcher: tool used to fetch the metadata | ||||
:>jsonarr string format: short identifier of the format of the metadata | :>jsonarr string format: short identifier of the format of the metadata | ||||
:>jsonarr string metadata_url: link to download the metadata "blob" itself | :>jsonarr string metadata_url: link to download the metadata "blob" itself | ||||
:>jsonarr string origin: URL of the origin in which context's | :>jsonarr string origin: URL of the origin in which context's | ||||
the metadata is valid, if any | the metadata is valid, if any | ||||
:>jsonarr int visit: identifier of the visit in which context's | :>jsonarr int visit: identifier of the visit in which context's | ||||
▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines |