Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/api/test_apidoc.py
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | :>json array parents: the parents of the revision, i.e. the previous | ||||
:http:get:`/api/1/revision/(sha1_git)/` to get more information | :http:get:`/api/1/revision/(sha1_git)/` to get more information | ||||
about it | about it | ||||
:>json string type: the type of the revision | :>json string type: the type of the revision | ||||
:statuscode 200: no error | :statuscode 200: no error | ||||
:statuscode 400: an invalid **sha1_git** value has been provided | :statuscode 400: an invalid **sha1_git** value has been provided | ||||
:statuscode 404: requested revision can not be found in the archive | :statuscode 404: requested revision can not be found in the archive | ||||
**Request:** | **Example:** | ||||
.. parsed-literal:: | .. parsed-literal:: | ||||
:swh_web_api:`revision/aafb16d69fd30ff58afdd69036a26047f3aebdc6/` | :swh_web_api:`revision/aafb16d69fd30ff58afdd69036a26047f3aebdc6/` | ||||
""" | """ | ||||
_exception_http_code = { | _exception_http_code = { | ||||
▲ Show 20 Lines • Show All 324 Lines • ▼ Show 20 Lines | output_html_doc = textwrap.indent( | ||||
' <div class="swh-rst">\n' | ' <div class="swh-rst">\n' | ||||
" <blockquote>\n" | " <blockquote>\n" | ||||
" <ul>\n" | " <ul>\n" | ||||
" <li>\n" | " <li>\n" | ||||
" <p>\n" | " <p>\n" | ||||
" <strong>\n" | " <strong>\n" | ||||
" <swhid> (object)\n" | " <swhid> (object)\n" | ||||
" </strong>\n" | " </strong>\n" | ||||
" : an object whose keys are input SWHIDs" | " : an object whose keys are input SWHIDs" | ||||
" and values objects with the following keys:\n" | " and values objects with the following keys:\n" | ||||
" </p>\n" | " </p>\n" | ||||
" <blockquote>\n" | " <blockquote>\n" | ||||
' <ul class="simple">\n' | ' <ul class="simple">\n' | ||||
" <li>\n" | " <li>\n" | ||||
" <p>\n" | " <p>\n" | ||||
" <strong>\n" | " <strong>\n" | ||||
" known (bool)\n" | " known (bool)\n" | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |