Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/revision.py
Show All 10 Lines | |||||
from swh.web.api import utils | from swh.web.api import utils | ||||
from swh.web.api.apidoc import api_doc, format_docstring | from swh.web.api.apidoc import api_doc, format_docstring | ||||
from swh.web.api.apiurls import api_route | from swh.web.api.apiurls import api_route | ||||
from swh.web.api.views.utils import api_lookup | from swh.web.api.views.utils import api_lookup | ||||
DOC_RETURN_REVISION = ''' | DOC_RETURN_REVISION = ''' | ||||
:>json object author: information about the author of the revision | :>json object author: information about the author of the revision | ||||
:>json string author_url: link to | |||||
:http:get:`/api/1/person/(person_id)/` to get information about the | |||||
author of the revision | |||||
:>json object committer: information about the committer of the | :>json object committer: information about the committer of the | ||||
revision | revision | ||||
:>json string committer_url: link to | |||||
:http:get:`/api/1/person/(person_id)/` to get information about the | |||||
committer of the revision | |||||
:>json string committer_date: ISO representation of the commit date | :>json string committer_date: ISO representation of the commit date | ||||
(in UTC) | (in UTC) | ||||
:>json string date: ISO representation of the revision date (in UTC) | :>json string date: ISO representation of the revision date (in UTC) | ||||
:>json string directory: the unique identifier that revision points to | :>json string directory: the unique identifier that revision points to | ||||
:>json string directory_url: link to | :>json string directory_url: link to | ||||
:http:get:`/api/1/directory/(sha1_git)/[(path)/]` to get | :http:get:`/api/1/directory/(sha1_git)/[(path)/]` to get | ||||
information about the directory associated to the revision | information about the directory associated to the revision | ||||
:>json string id: the revision unique identifier | :>json string id: the revision unique identifier | ||||
▲ Show 20 Lines • Show All 445 Lines • Show Last 20 Lines |