Changeset View
Changeset View
Standalone View
Standalone View
docs/extrinsic-metadata-specification.rst
Show First 20 Lines • Show All 258 Lines • ▼ Show 20 Lines | * Getting all metadata:: | ||||
and a ``next_page_token`` used to fetch the next list of results, if any | and a ``next_page_token`` used to fetch the next list of results, if any | ||||
.. _extrinsic-metadata-formats: | .. _extrinsic-metadata-formats: | ||||
Extrinsic metadata formats | Extrinsic metadata formats | ||||
-------------------------- | -------------------------- | ||||
Formats are identified by an opaque string. | |||||
When possible, it should be the MIME type already in use to describe the | |||||
metadata format outside Software Heritage. | |||||
Otherwise it should be unambiguous, printable ASCII without spaces, | |||||
and human-readable. | |||||
Here is a list of all the metadata format stored: | Here is a list of all the metadata format stored: | ||||
``application/vnd.github.v3+json`` | |||||
The metadata is the response of an API call to GitHub. | |||||
``gitlab-project-json`` | |||||
The metadata is the response of an API call to a Gitlab instance. | |||||
``pypi-project-json`` | ``pypi-project-json`` | ||||
The metadata is a release entry from a PyPI project's | The metadata is a release entry from a PyPI project's | ||||
JSON file, extracted and re-serialized. | JSON file, extracted and re-serialized. | ||||
``replicate-npm-package-json`` | ``replicate-npm-package-json`` | ||||
ditto, but from a replicate.npmjs.com project | ditto, but from a replicate.npmjs.com project | ||||
``nixguix-sources-json`` | ``nixguix-sources-json`` | ||||
ditto, but from https://nix-community.github.io/nixpkgs-swh/ | ditto, but from https://nix-community.github.io/nixpkgs-swh/ | ||||
``original-artifacts-json`` | ``original-artifacts-json`` | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |