Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/release.py
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | .. http:get:: /api/1/release/(sha1_git)/ | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
:swh_web_api:`release/208f61cc7a5dbc9879ae6e5c2f95891e270f09ef/` | :swh_web_api:`release/208f61cc7a5dbc9879ae6e5c2f95891e270f09ef/` | ||||
""" | """ | ||||
error_msg = 'Release with sha1_git %s not found.' % sha1_git | error_msg = 'Release with sha1_git %s not found.' % sha1_git | ||||
return api_lookup( | return api_lookup( | ||||
service.lookup_release, sha1_git, | service.lookup_release, sha1_git, | ||||
notfound_msg=error_msg, | notfound_msg=error_msg, | ||||
enrich_fn=utils.enrich_release) | enrich_fn=utils.enrich_release, | ||||
request=request) |