Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/identifiers.py
Show All 18 Lines | .. http:get:: /api/1/resolve/(swh_id)/ | ||||
Resolve a Software Heritage persistent identifier. | Resolve a Software Heritage persistent identifier. | ||||
Try to resolve a provided `persistent identifier <https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html>`_ | Try to resolve a provided `persistent identifier <https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html>`_ | ||||
into an url for browsing the pointed archive object. If the provided | into an url for browsing the pointed archive object. If the provided | ||||
identifier is valid, the existence of the object in the archive | identifier is valid, the existence of the object in the archive | ||||
will also be checked. | will also be checked. | ||||
:param string swh_id: a Software Heritage presistent identifier | :param string swh_id: a Software Heritage persistent identifier | ||||
:>json string browse_url: the url for browsing the pointed object | :>json string browse_url: the url for browsing the pointed object | ||||
:>json object metadata: object holding optional parts of the persistent identifier | :>json object metadata: object holding optional parts of the persistent identifier | ||||
:>json string namespace: the persistent identifier namespace | :>json string namespace: the persistent identifier namespace | ||||
:>json string object_id: the hash identifier of the pointed object | :>json string object_id: the hash identifier of the pointed object | ||||
:>json string object_type: the type of the pointed object | :>json string object_type: the type of the pointed object | ||||
:>json number scheme_version: the scheme version of the persistent identifier | :>json number scheme_version: the scheme version of the persistent identifier | ||||
Show All 27 Lines |