Create syncthing-rest-api(7)
This commit is contained in:
+11
-9
@@ -1,19 +1,21 @@
|
|||||||
REST API
|
REST API
|
||||||
========
|
========
|
||||||
|
|
||||||
Syncthing exposes a REST interface over HTTP on the GUI port. This is
|
Description
|
||||||
used by the GUI code (JavaScript) and can be used by other processes
|
-----------
|
||||||
wishing to control Syncthing. In most cases both the input and output
|
|
||||||
data is in JSON format. The interface is subject to change.
|
Syncthing exposes a REST interface over HTTP on the GUI port. This is used by
|
||||||
|
the GUI code (JavaScript) and can be used by other processes wishing to control
|
||||||
|
Syncthing. In most cases both the input and output data is in JSON format. The
|
||||||
|
interface is subject to change.
|
||||||
|
|
||||||
API Key
|
API Key
|
||||||
-------
|
-------
|
||||||
|
|
||||||
To use the POST methods, or *any* method when authentication is enabled,
|
To use the POST methods, or *any* method when authentication is enabled, an API
|
||||||
an API key must be set and used. The API key can be generated in the
|
key must be set and used. The API key can be generated in the GUI, or set in the
|
||||||
GUI, or set in the ``configuration/gui/apikey`` element in the
|
``configuration/gui/apikey`` element in the configuration file. To use an API
|
||||||
configuration file. To use an API key, set the request header
|
key, set the request header ``X-API-Key`` to the API key value.
|
||||||
``X-API-Key`` to the API key value.
|
|
||||||
|
|
||||||
System Endpoints
|
System Endpoints
|
||||||
----------------
|
----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user