diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-20 16:05:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-20 16:05:21 +0200 |
commit | 2bacc9f6a10cfa2b7d13190b8da86c1ac36c2daa (patch) | |
tree | 3fa3ca41ebd09d2785b2016a918c57637232b5cd | |
parent | 1d69f28d80826bdefc44c58b4002db807c5b7079 (diff) | |
download | vyos-documentation-2bacc9f6a10cfa2b7d13190b8da86c1ac36c2daa.tar.gz vyos-documentation-2bacc9f6a10cfa2b7d13190b8da86c1ac36c2daa.zip |
http: api: fix warning - title underline too short
-rw-r--r-- | docs/appendix/http-api.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/appendix/http-api.rst b/docs/appendix/http-api.rst index e9e4e653..86d8b394 100644 --- a/docs/appendix/http-api.rst +++ b/docs/appendix/http-api.rst @@ -37,7 +37,7 @@ leave appropriate defaults in the nginx directive. Multiple instances of ``service https api-restrict virtual-host`` may be set. Configuration mode requests --------------------- +--------------------------- In our example, we are creating a dummy interface and assigning an address to it: @@ -74,8 +74,8 @@ To retrieve the full config under a path: .. code-block:: none # curl -k -X POST -F data='{"op": "showConfig", "path": ["interfaces", "dummy"]}' -F key=MY-HTTP-API-PLAINTEXT-KEY https://192.168.122.127/retrieve - -It will return: + +It will return: .. code-block:: none @@ -86,7 +86,7 @@ Passing an empty path will return the full config: .. code-block:: none # curl -k -X POST -F data='{"op": "showConfig", "path": []}' -F key=MY-HTTP-API-PLAINTEXT-KEY https://192.168.122.127/retrieve - + Configuration management requests --------------------------------- @@ -128,7 +128,7 @@ Response: .. code-block:: none - {"success": true, "data": "<some pubkey>=\n", "error": null} + {"success": true, "data": "<some pubkey>=\n", "error": null} Request: @@ -140,5 +140,5 @@ Response: .. code-block:: none - {"success": true, "data": "Codes: K - kernel route, C - connected, S - static, R - RIP,\n O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,\n T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,\n F - PBR, f - OpenFabric,\n > - selected route, * - FIB route, q - queued route, r - rejected route\n\nS>* 0.0.0.0/0 [210/0] via 192.168.100.1, eth0, 01:41:05\nC>* 192.168.0.0/24 is directly connected, eth1, 01:41:09\nC>* 192.168.100.0/24 is directly connected, eth0, 01:41:05\nC>* 203.0.113.76/32 is directly connected, dum1, 01:38:40\n", "error": null} + {"success": true, "data": "Codes: K - kernel route, C - connected, S - static, R - RIP,\n O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,\n T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,\n F - PBR, f - OpenFabric,\n > - selected route, * - FIB route, q - queued route, r - rejected route\n\nS>* 0.0.0.0/0 [210/0] via 192.168.100.1, eth0, 01:41:05\nC>* 192.168.0.0/24 is directly connected, eth1, 01:41:09\nC>* 192.168.100.0/24 is directly connected, eth0, 01:41:05\nC>* 203.0.113.76/32 is directly connected, dum1, 01:38:40\n", "error": null} |