Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/origin.py
Show All 22 Lines | DOC_RETURN_ORIGIN = """ | ||||
:>json string origin_visits_url: link to in order to get information | :>json string origin_visits_url: link to in order to get information | ||||
about the visits for that origin | about the visits for that origin | ||||
:>json string url: the origin canonical url | :>json string url: the origin canonical url | ||||
""" | """ | ||||
DOC_RETURN_ORIGIN_ARRAY = DOC_RETURN_ORIGIN.replace(":>json", ":>jsonarr") | DOC_RETURN_ORIGIN_ARRAY = DOC_RETURN_ORIGIN.replace(":>json", ":>jsonarr") | ||||
DOC_RETURN_ORIGIN_VISIT = """ | DOC_RETURN_ORIGIN_VISIT = """ | ||||
:>json string date: ISO representation of the visit date (in UTC) | :>json string date: ISO8601/RFC3339 representation of the visit date (in UTC) | ||||
:>json str origin: the origin canonical url | :>json str origin: the origin canonical url | ||||
:>json string origin_url: link to get information about the origin | :>json string origin_url: link to get information about the origin | ||||
:>jsonarr string snapshot: the snapshot identifier of the visit | :>jsonarr string snapshot: the snapshot identifier of the visit | ||||
(may be null if status is not **full**). | (may be null if status is not **full**). | ||||
:>jsonarr string snapshot_url: link to | :>jsonarr string snapshot_url: link to | ||||
:http:get:`/api/1/snapshot/(snapshot_id)/` in order to get | :http:get:`/api/1/snapshot/(snapshot_id)/` in order to get | ||||
information about the snapshot of the visit | information about the snapshot of the visit | ||||
(may be null if status is not **full**). | (may be null if status is not **full**). | ||||
▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines |