Skip to content

Commit

Permalink
Correct API docs examples (#6963)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Kalafut authored Jun 24, 2019
1 parent 6728384 commit 9ca5e55
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
4 changes: 2 additions & 2 deletions website/source/api/auth/userpass/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ $ curl \
"renewable": false,
"data": {
"max_ttl": 0,
"policies": "default,dev",
"policies": ["default", "dev"],
"ttl": 0
},
"warnings": null
Expand Down Expand Up @@ -161,7 +161,7 @@ Update policies for an existing user.

```json
{
"policies": "policy1,policy2",
"policies": ["policy1", "policy2"],
}
```

Expand Down
27 changes: 24 additions & 3 deletions website/source/api/system/mounts.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ $ curl \
```

### Sample Response

```json
{
"aws": {
"aws/": {
"type": "aws",
"description": "AWS keys",
"config": {
Expand All @@ -41,7 +40,7 @@ $ curl \
"seal_wrap": false
}
},
"sys": {
"sys/": {
"type": "system",
"description": "system endpoint",
"config": {
Expand All @@ -50,6 +49,28 @@ $ curl \
"force_no_cache": false,
"seal_wrap": false
}
},
"data": {
"aws/": {
"type": "aws",
"description": "AWS keys",
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0,
"force_no_cache": false,
"seal_wrap": false
}
},
"sys/": {
"type": "system",
"description": "system endpoint",
"config": {
"default_lease_ttl": 0,
"max_lease_ttl": 0,
"force_no_cache": false,
"seal_wrap": false
}
},
}
}
```
Expand Down

0 comments on commit 9ca5e55

Please sign in to comment.