Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/snapshot.py
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | .. http:get:: /api/1/snapshot/(snapshot_id)/ | ||||
{common_headers} | {common_headers} | ||||
{resheader_link} | {resheader_link} | ||||
:>json object branches: object containing all branches associated to | :>json object branches: object containing all branches associated to | ||||
the snapshot,for each of them the associated target type and id are | the snapshot,for each of them the associated target type and id are | ||||
given but also a link to get information about that target | given but also a link to get information about that target | ||||
:>json string id: the unique identifier of the snapshot | :>json string id: the unique identifier of the snapshot | ||||
**Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, | |||||
:http:method:`options` | |||||
:statuscode 200: no error | :statuscode 200: no error | ||||
:statuscode 400: an invalid snapshot identifier has been provided | :statuscode 400: an invalid snapshot identifier has been provided | ||||
:statuscode 404: requested snapshot can not be found in the archive | :statuscode 404: requested snapshot can not be found in the archive | ||||
**Example:** | **Example:** | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
Show All 30 Lines |