]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - docs/http-api/index.rst
Merge pull request #8091 from omoerbeek/float-vs-double
[thirdparty/pdns.git] / docs / http-api / index.rst
index 91b4bc0c769d2104c87303e834bc3d571ed20827..4a81db80b29adf74eaceb8541cac2a9eea187a86 100644 (file)
@@ -1,7 +1,7 @@
 Built-in Webserver and HTTP API
 ===============================
 
-The PowerDNS Authoritative Server features a built-in built-in webserver that exposes a JSON/REST API.
+The PowerDNS Authoritative Server features a built-in webserver that exposes a JSON/REST API.
 This API allows for controlling several functions, reading statistics and modifying zone content, metadata and DNSSEC key material.
 
 Webserver
@@ -19,6 +19,7 @@ The following webserver related configuration items are available:
 * :ref:`setting-webserver-password`: If set, viewers will have to enter this plaintext password in order to gain access to the statistics, in addition to entering the configured API key on the index page.
 * :ref:`setting-webserver-port`: Port to bind the webserver to.
 * :ref:`setting-webserver-allow-from`: Netmasks that are allowed to connect to the webserver
+* :ref:`setting-webserver-max-bodysize`: Maximum request/response body size in megabytes
 
 Enabling the API
 ----------------
@@ -61,16 +62,8 @@ Response code ``4xx`` or ``5xx``, depending on the situation.
 
 Error responses have a JSON body of this format:
 
-.. code-block:: json
-
-    {
-      "error": "short error message",
-      "errors": [
-        {  },
-      ]
-    }
-
-Where ``errors`` is optional, and the contents are error-specific.
+.. openapi:: swagger/authoritative-api-swagger.yaml
+  :definitions: Error
 
 Data format
 ~~~~~~~~~~~
@@ -101,6 +94,7 @@ The API exposes several endpoints and objects:
   zone
   cryptokey
   metadata
+  tsigkey
   search
   statistics
   cache