mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1827 from lamielle/doc-whitespaces
doc: uses spaces consistently in sample JSON
This commit is contained in:
commit
f02eae934b
@ -643,22 +643,22 @@ We should see the response as an array of items:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"action": "get",
|
"action": "get",
|
||||||
"node": {
|
"node": {
|
||||||
"key": "/",
|
"key": "/",
|
||||||
"dir": true,
|
"dir": true,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"key": "/foo_dir",
|
"key": "/foo_dir",
|
||||||
"dir": true,
|
"dir": true,
|
||||||
"modifiedIndex": 2,
|
"modifiedIndex": 2,
|
||||||
"createdIndex": 2
|
"createdIndex": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "/foo",
|
"key": "/foo",
|
||||||
"value": "two",
|
"value": "two",
|
||||||
"modifiedIndex": 1,
|
"modifiedIndex": 1,
|
||||||
"createdIndex": 1
|
"createdIndex": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -673,33 +673,33 @@ curl -L http://127.0.0.1:4001/v2/keys/?recursive=true
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"action": "get",
|
"action": "get",
|
||||||
"node": {
|
"node": {
|
||||||
"key": "/",
|
"key": "/",
|
||||||
"dir": true,
|
"dir": true,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"key": "/foo_dir",
|
"key": "/foo_dir",
|
||||||
"dir": true,
|
"dir": true,
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"key": "/foo_dir/foo",
|
"key": "/foo_dir/foo",
|
||||||
"value": "bar",
|
"value": "bar",
|
||||||
"modifiedIndex": 2,
|
"modifiedIndex": 2,
|
||||||
"createdIndex": 2
|
"createdIndex": 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"modifiedIndex": 2,
|
"modifiedIndex": 2,
|
||||||
"createdIndex": 2
|
"createdIndex": 2
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"key": "/foo",
|
"key": "/foo",
|
||||||
"value": "two",
|
"value": "two",
|
||||||
"modifiedIndex": 1,
|
"modifiedIndex": 1,
|
||||||
"createdIndex": 1
|
"createdIndex": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user