Mercurial > kallithea
changeset 7890:ae155f6a99ad
docs: fix curl example
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 26 Sep 2019 11:40:39 +0200 |
parents | df275f701d53 |
children | 83d2cf291dd4 |
files | docs/api/api.rst |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/api/api.rst Wed Sep 11 23:00:57 2019 +0200 +++ b/docs/api/api.rst Thu Sep 26 11:40:39 2019 +0200 @@ -32,7 +32,7 @@ For example, to pull to a local "CPython" mirror using curl:: curl https://kallithea.example.com/_admin/api -X POST -H 'content-type:text/plain' \ - --data-binary '{"id":1,"api_key":"xe7cdb2v278e4evbdf5vs04v832v0efvcbcve4a3","method":"pull","args":{"repo":"CPython"}}' + --data-binary '{"id":1,"api_key":"xe7cdb2v278e4evbdf5vs04v832v0efvcbcve4a3","method":"pull","args":{"repoid":"CPython"}}' In general, provide - *id*, a value of any type, can be used to match the response with the request that it is replying to.