Changeset View
Changeset View
Standalone View
Standalone View
docs/persistent-identifiers.rst
Show First 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | |||||
SWHIDs can be resolved using the Software Heritage `Web interface | SWHIDs can be resolved using the Software Heritage `Web interface | ||||
<https://archive.softwareheritage.org>`_. In particular, the **root endpoint** | <https://archive.softwareheritage.org>`_. In particular, the **root endpoint** | ||||
``/`` can be given a SWHID and will lead to the browsing page of the | ``/`` can be given a SWHID and will lead to the browsing page of the | ||||
corresponding object, like this: | corresponding object, like this: | ||||
``https://archive.softwareheritage.org/<identifier>``. | ``https://archive.softwareheritage.org/<identifier>``. | ||||
A **dedicated** ``/resolve`` **endpoint** of the Software Heritage `Web API | A **dedicated** ``/resolve`` **endpoint** of the Software Heritage `Web API | ||||
<https://archive.softwareheritage.org/api/>`_ is also available to | <https://archive.softwareheritage.org/api/>`_ is also available to | ||||
programmatically resolve SWHIDs; see: :http:get:`/api/1/resolve/(swh_id)/`. | programmatically resolve SWHIDs; see: :http:get:`/api/1/resolve/(swhid)/`. | ||||
Examples: | Examples: | ||||
* `<https://archive.softwareheritage.org/swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2>`_ | * `<https://archive.softwareheritage.org/swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2>`_ | ||||
* `<https://archive.softwareheritage.org/swh:1:dir:d198bc9d7a6bcf6db04f476d29314f157507d505>`_ | * `<https://archive.softwareheritage.org/swh:1:dir:d198bc9d7a6bcf6db04f476d29314f157507d505>`_ | ||||
* `<https://archive.softwareheritage.org/api/1/resolve/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d>`_ | * `<https://archive.softwareheritage.org/api/1/resolve/swh:1:rev:309cf2674ee7a0749978cf8265ab91a60aea0f7d>`_ | ||||
* `<https://archive.softwareheritage.org/api/1/resolve/swh:1:rel:22ece559cc7cc2364edc5e5593d63ae8bd229f9f>`_ | * `<https://archive.softwareheritage.org/api/1/resolve/swh:1:rel:22ece559cc7cc2364edc5e5593d63ae8bd229f9f>`_ | ||||
* `<https://archive.softwareheritage.org/api/1/resolve/swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453>`_ | * `<https://archive.softwareheritage.org/api/1/resolve/swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453>`_ | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |