Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/origin.py
Show All 27 Lines | |||||
DOC_RETURN_ORIGIN_ARRAY = \ | DOC_RETURN_ORIGIN_ARRAY = \ | ||||
DOC_RETURN_ORIGIN.replace(':>json', ':>jsonarr') | 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: ISO 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**). | |||||
:>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**). | |||||
:>json string status: status of the visit (either **full**, | :>json string status: status of the visit (either **full**, | ||||
**partial** or **ongoing**) | **partial** or **ongoing**) | ||||
:>json number visit: the unique identifier of the visit | :>json number visit: the unique identifier of the visit | ||||
''' | ''' | ||||
DOC_RETURN_ORIGIN_VISIT_ARRAY = \ | DOC_RETURN_ORIGIN_VISIT_ARRAY = \ | ||||
DOC_RETURN_ORIGIN_VISIT.replace(':>json', ':>jsonarr') | DOC_RETURN_ORIGIN_VISIT.replace(':>json', ':>jsonarr') | ||||
▲ Show 20 Lines • Show All 593 Lines • Show Last 20 Lines |