Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/origin.py
Show All 39 Lines | DOC_RETURN_ORIGIN_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**). | ||||
:>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 | ||||
:>json string metadata_authorities_url: link to | |||||
:http:get:`/api/1/raw-extrinsic-metadata/swhid/(target)/authorities/` | |||||
to get the list of metadata authorities providing extrinsic metadata | |||||
on this origin (and, indirectly, to the origin's extrinsic metadata itself) | |||||
""" | """ | ||||
DOC_RETURN_ORIGIN_VISIT_ARRAY = DOC_RETURN_ORIGIN_VISIT.replace(":>json", ":>jsonarr") | DOC_RETURN_ORIGIN_VISIT_ARRAY = DOC_RETURN_ORIGIN_VISIT.replace(":>json", ":>jsonarr") | ||||
DOC_RETURN_ORIGIN_VISIT_ARRAY += """ | DOC_RETURN_ORIGIN_VISIT_ARRAY += """ | ||||
:>jsonarr number id: the unique identifier of the origin | :>jsonarr number id: the unique identifier of the origin | ||||
:>jsonarr string origin_visit_url: link to | :>jsonarr string origin_visit_url: link to | ||||
:http:get:`/api/1/origin/(origin_url)/visit/(visit_id)/` | :http:get:`/api/1/origin/(origin_url)/visit/(visit_id)/` | ||||
▲ Show 20 Lines • Show All 451 Lines • Show Last 20 Lines |