From 9df6cf90acbd74290330f1fa0a8b16b059426b5d Mon Sep 17 00:00:00 2001 From: Roberto Berto Date: Thu, 30 Apr 2020 21:58:50 -0300 Subject: fixed pre formatting --- docs/appendix/http-api.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/appendix') diff --git a/docs/appendix/http-api.rst b/docs/appendix/http-api.rst index fe990269..945a2518 100644 --- a/docs/appendix/http-api.rst +++ b/docs/appendix/http-api.rst @@ -76,9 +76,14 @@ Reading config To retrieve raw configs: +.. code-block:: none + # curl -X POST -F data='{"op": "showConfig", "path": ["interfaces", "dummy"]}' -F key=MY-HTTP-API-PLAINTEXT-KEY https://192.168.122.127/retrieve It will returns: + +.. code-block:: none + {"success": true, "data": " /* So very dummy */\n dummy dum0 {\n address 192.168.168.1/32\n address 192.168.168.2/32\n /* That is a description */\n description \"Test interface\"\n }\n dummy dum1 {\n address 203.0.113.76/32\n address 203.0.113.79/32\n }\n", "error": null} -- cgit v1.2.3