]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
docs: HTTP API tsigkeys example shows wrong body
authorGert van Dijk <gertvdijk@gmail.com>
Sun, 31 Mar 2019 17:25:22 +0000 (19:25 +0200)
committerGert van Dijk <gertvdijk@gmail.com>
Mon, 8 Apr 2019 10:15:07 +0000 (12:15 +0200)
Two errors fixed:
* The JSON body parameter key 'key' was provided twice. I think it should
  have been the 'name' key.
* One value wasn't terminated with a double quote.

The HTTP code block parser warned about this in the sphinx-build output.

docs/http-api/tsigkey.rst

index 83b3db55f195b03462bdcc636109920aee176aeb..5509e21d569ea16d8a5abe698db03589a6df5a98 100644 (file)
@@ -36,7 +36,7 @@ Modifying the key material
   X-Api-Key: secret
   Content-Type: application/json
 
-  {"key": "mytsigkey, "key": "GQNyFy1QagMUarHmiSgsIJajghdTGJGVcN5TRVwgbclzxGyhQR1uYLCOyJ/uj9uj12jyeLwzJuW12wCI9PYv7Q=="}
+  {"name": "mytsigkey", "key": "GQNyFy1QagMUarHmiSgsIJajghdTGJGVcN5TRVwgbclzxGyhQR1uYLCOyJ/uj9uj12jyeLwzJuW12wCI9PYv7Q=="}
 
 .. code-block:: http