Merge pull request #38 from syncthing/Zillode-api-key-curl
Show example with api-key using curl
This commit is contained in:
+3
-1
@@ -17,7 +17,9 @@ API Key
|
|||||||
To use the POST methods, or *any* method when authentication is enabled, an API
|
To use the POST methods, or *any* method when authentication is enabled, an API
|
||||||
key must be set and used. The API key can be generated in the GUI, or set in the
|
key must be set and used. The API key can be generated in the GUI, or set in the
|
||||||
``configuration/gui/apikey`` element in the configuration file. To use an API
|
``configuration/gui/apikey`` element in the configuration file. To use an API
|
||||||
key, set the request header ``X-API-Key`` to the API key value.
|
key, set the request header ``X-API-Key`` to the API key value. For example,
|
||||||
|
``curl -X POST -H "X-API-Key: abc123" http://localhost:8384/rest/...`` can be
|
||||||
|
used to invoke authenticated POST methods via ``curl``.
|
||||||
|
|
||||||
System Endpoints
|
System Endpoints
|
||||||
----------------
|
----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user