Merge pull request #641 from mdlayher/patch-1

docs(Documentation/api): fix JSON spacing, syntax highlighting
This commit is contained in:
Brandon Philips 2014-03-22 09:30:21 -07:00
commit aeb9e0633a

View File

@ -118,7 +118,7 @@ curl -L http://127.0.0.1:4001/v2/keys/message -XPUT -d value="Hello etcd"
"value": "Hello etcd" "value": "Hello etcd"
}, },
"prevNode": { "prevNode": {
"createdIndex":2 "createdIndex": 2
"key": "/message", "key": "/message",
"value": "Hello world", "value": "Hello world",
"modifiedIndex": 2, "modifiedIndex": 2,
@ -378,11 +378,11 @@ curl 'http://127.0.0.1:4001/v2/keys/dir/asdf?consistent=true&wait=true'
"modifiedIndex": 15 "modifiedIndex": 15
}, },
"prevNode": { "prevNode": {
"createdIndex":8, "createdIndex": 8,
"key": "/dir", "key": "/dir",
"dir":true, "dir":true,
"modifiedIndex": 17, "modifiedIndex": 17,
"expiration":"2013-12-11T10:39:35.689275857-08:00" "expiration": "2013-12-11T10:39:35.689275857-08:00"
}, },
} }
``` ```
@ -465,7 +465,7 @@ The response should be:
"value": "two" "value": "two"
}, },
"prevNode": { "prevNode": {
"createdIndex":8, "createdIndex": 8,
"key": "/foo", "key": "/foo",
"modifiedIndex": 8, "modifiedIndex": 8,
"value": "one" "value": "one"
@ -1120,7 +1120,7 @@ And this is an example response from a leader machine:
curl -L http://127.0.0.1:4001/v2/stats/self curl -L http://127.0.0.1:4001/v2/stats/self
``` ```
``` ```json
{ {
"leaderInfo": { "leaderInfo": {
"leader": "machine0", "leader": "machine0",