Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/views/origin_save.py
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | .. http:post:: /api/1/origin/save/(visit_type)/url/(origin_url)/ | ||||
* **succeeded**: the saving task has been successfully executed | * **succeeded**: the saving task has been successfully executed | ||||
* **failed**: the saving task has been executed but it failed | * **failed**: the saving task has been executed but it failed | ||||
When issuing a POST request an object will be returned while a GET | When issuing a POST request an object will be returned while a GET | ||||
request will return an array of objects (as multiple save requests | request will return an array of objects (as multiple save requests | ||||
might have been submitted for the same origin). | might have been submitted for the same origin). | ||||
:param string visit_type: the type of visit to perform | :param string visit_type: the type of visit to perform | ||||
(currently the supported types are ``git``, ``hg`` and ``svn``) | (currently the supported types are ``git``, ``hg``, ``svn``, and ``cvs``) | ||||
:param string origin_url: the url of the origin to save | :param string origin_url: the url of the origin to save | ||||
{common_headers} | {common_headers} | ||||
:>json string origin_url: the url of the origin to save | :>json string origin_url: the url of the origin to save | ||||
:>json string visit_type: the type of visit to perform | :>json string visit_type: the type of visit to perform | ||||
:>json string save_request_date: the date (in iso format) the save | :>json string save_request_date: the date (in iso format) the save | ||||
request was issued | request was issued | ||||
Show All 34 Lines |