mirror of https://github.com/status-im/consul.git
Corrects formatting of JSON in snippet
The original snippet did not put the JSON output on its own line, which made it look like it was part of the previous or next `curl` command. This patch formats and highlights the command and output to appear as they would in the terminal while also highlighting the multi-datacenter elements of the output.
This commit is contained in:
parent
a620ac8314
commit
5ea644c9e9
|
@ -175,7 +175,13 @@ web-frontend.service.consul. 0 IN A <code class='keyword'>10.0.1.109</code></cod
|
|||
<div>
|
||||
<span></span>
|
||||
<div class='code'>
|
||||
<code>$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
|
||||
<code>
|
||||
$ curl http://localhost:8500/v1/catalog/datacenters
|
||||
<code class='keyword'>[
|
||||
"dc1",
|
||||
"dc2"
|
||||
]</code>
|
||||
$ curl http://localhost:8500/v1/catalog/nodes?<code class='keyword'>dc=dc2</code>
|
||||
[
|
||||
{
|
||||
"ID": "7081dcdf-fdc0-0432-f2e8-a357d36084e1",
|
||||
|
|
Loading…
Reference in New Issue