REST

From OSSelot
Revision as of 23:41, 26 July 2023 by Wiki (talk | contribs) (Created initial content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Obtain curation data via a REST interface

Available formats

Currently, the curated data are available in JSON, SPDX2TV and YAML format.

Scheme

This REST interface uses HTTP protocol at port 3262 and the following scheme:

http://www.osselot.org:3262/<format>/<package>/<version>

where <format> may be any of "json", "spdx" or "yaml". The version must be given when SPDX2TV or YAML format is used. Only JSON format permits to retrieve all curated versions of a software package with a single REST call.