]> granicus.if.org Git - icinga2/commitdiff
Fix formatting in API docs 5425/head
authorGlauco Vinicius <gl4uc0@gmail.com>
Wed, 5 Jul 2017 19:10:10 +0000 (16:10 -0300)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 20 Jul 2017 08:41:17 +0000 (10:41 +0200)
Indent curl command to get the appropriated code highlight.

doc/12-icinga2-api.md

index fa9ffb8f2348fbeb74016ccda2f69e03ff1e1123..7e5c9b008606c6b28a4fbce8e936dacea35ea4f6 100644 (file)
@@ -518,13 +518,13 @@ In case you want to fetch all [comments](9-object-types.md#objecttype-comment)
 for hosts and services, you can use the following query URL (similar example
 for downtimes):
 
-   https://localhost:5665/v1/objects/comments?joins=host&joins=service
+    https://localhost:5665/v1/objects/comments?joins=host&joins=service
 
 This is another example for listing all service objects which are unhandled problems (state is not OK
 and no downtime or acknowledgement set). We're using [X-HTTP-Method-Override](12-icinga2-api.md#icinga2-api-requests-method-override)
 here because we want to pass all query attributes in the request body.
 
-   $ curl -k -s -u root:icinga -H 'Accept: application/json' -H 'X-HTTP-Method-Override: GET' -X POST 'https://127.0.0.1:5665/v1/objects/services' \
+    $ curl -k -s -u root:icinga -H 'Accept: application/json' -H 'X-HTTP-Method-Override: GET' -X POST 'https://127.0.0.1:5665/v1/objects/services' \
     -d '{ "joins": [ "host.name", "host.address" ], "attrs": [ "name", "state", "downtime_depth", "acknowledgement" ], "filter": "service.state != ServiceOK && service.downtime_depth == 0.0 && service.acknowledgement == 0.0" }' | python -m json.tool
 
     {