Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/revision.py
Show All 9 Lines | |||||
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 | ||||
from swh.web.common import archive | from swh.web.common import archive | ||||
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 object committer: information about the committer of the | :>json object committer: information about the committer of the | ||||
revision | revision | ||||
:>json string committer_date: ISO representation of the commit date | :>json string committer_date: RFC3339 representation of the commit date | ||||
(in UTC) | :>json string date: RFC3339 representation of the revision date | ||||
:>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 | ||||
:>json boolean merge: whether or not the revision corresponds to a | :>json boolean merge: whether or not the revision corresponds to a | ||||
merge commit | merge commit | ||||
:>json string message: the message associated to the revision | :>json string message: the message associated to the revision | ||||
▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines |