Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/release.py
Show All 15 Lines | |||||
@api_doc("/release/") | @api_doc("/release/") | ||||
@format_docstring() | @format_docstring() | ||||
def api_release(request, sha1_git): | def api_release(request, sha1_git): | ||||
""" | """ | ||||
.. http:get:: /api/1/release/(sha1_git)/ | .. http:get:: /api/1/release/(sha1_git)/ | ||||
Get information about a release in the archive. Releases are identified | Get information about a release in the archive. Releases are identified | ||||
by **sha1** checksums, compatible with Git tag identifiers. See | by **sha1** checksums, compatible with Git tag identifiers. See | ||||
:func:`swh.model.identifiers.release_identifier` in our data model | :func:`swh.model.git_objects.release_git_object` in our data model | ||||
module for details about how they are computed. | module for details about how they are computed. | ||||
:param string sha1_git: hexadecimal representation of the release | :param string sha1_git: hexadecimal representation of the release | ||||
**sha1_git** identifier | **sha1_git** identifier | ||||
{common_headers} | {common_headers} | ||||
:>json object author: information about the author of the release | :>json object author: information about the author of the release | ||||
Show All 28 Lines |