Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/snapshot.py
Show All 29 Lines | .. http:get:: /api/1/snapshot/(snapshot_id)/ | ||||
of an origin at a given time. | of an origin at a given time. | ||||
As well as pointing to other objects in the Software Heritage DAG, | As well as pointing to other objects in the Software Heritage DAG, | ||||
branches can also be aliases, in which case their target is the name of | branches can also be aliases, in which case their target is the name of | ||||
another branch in the same snapshot, or dangling, in which case the | another branch in the same snapshot, or dangling, in which case the | ||||
target is unknown. | target is unknown. | ||||
A snapshot identifier is a salted sha1. See | A snapshot identifier is a salted sha1. See | ||||
:func:`swh.model.identifiers.snapshot_identifier` in our data model | :func:`swh.model.git_objects.snapshot_git_object` in our data model | ||||
module for details about how they are computed. | module for details about how they are computed. | ||||
:param sha1 snapshot_id: a snapshot identifier | :param sha1 snapshot_id: a snapshot identifier | ||||
:query str branches_from: optional parameter used to skip branches | :query str branches_from: optional parameter used to skip branches | ||||
whose name is lesser than it before returning them | whose name is lesser than it before returning them | ||||
:query int branches_count: optional parameter used to restrain | :query int branches_count: optional parameter used to restrain | ||||
the amount of returned branches (default to 1000) | the amount of returned branches (default to 1000) | ||||
:query str target_types: optional comma separated list parameter | :query str target_types: optional comma separated list parameter | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |