Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/identifiers.py
Show All 33 Lines | .. http:get:: /api/1/resolve/(swh_id)/ | ||||
:>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 | ||||
{common_headers} | {common_headers} | ||||
**Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options` | |||||
:statuscode 200: no error | :statuscode 200: no error | ||||
:statuscode 400: an invalid persistent identifier has been provided | :statuscode 400: an invalid persistent identifier has been provided | ||||
:statuscode 404: the pointed object does not exist in the archive | :statuscode 404: the pointed object does not exist in the archive | ||||
**Example:** | **Example:** | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |