repo-settings: expose pull api endpoint into remote pull view for easier automation.

This commit is contained in:
Marcin Kuzminski 2017-03-16 12:18:47 +01:00
parent 58fe679096
commit a5f15dc8cf
3 changed files with 21 additions and 3 deletions

View file

@ -75,7 +75,7 @@ Example call for auto pulling from remote repositories using curl:
.. code-block:: bash
curl https://server.com/_admin/api -X POST -H 'content-type:text/plain' --data-binary '{"id":1,
"auth_token":"xe7cdb2v278e4evbdf5vs04v832v0efvcbcve4a3","method":"pull", "args":{"repo":"CPython"}}'
"auth_token":"xe7cdb2v278e4evbdf5vs04v832v0efvcbcve4a3","method":"pull", "args":{"repoid":"CPython"}}'
Provide those parameters:
- **id** A value of any type, which is used to match the response with the