From: Gert van Dijk Date: Sun, 31 Mar 2019 17:25:22 +0000 (+0200) Subject: docs: HTTP API tsigkeys example shows wrong body X-Git-Tag: rec-4.2.0-rc1~45^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a311890aa24f5aeeb1fe299876b022fc55b97a3;p=thirdparty%2Fpdns.git docs: HTTP API tsigkeys example shows wrong body 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. --- diff --git a/docs/http-api/tsigkey.rst b/docs/http-api/tsigkey.rst index 83b3db55f1..5509e21d56 100644 --- a/docs/http-api/tsigkey.rst +++ b/docs/http-api/tsigkey.rst @@ -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