Merge pull request #315 from justincampbell/docs-json-auth

docs: Fix examples of auth via JSON
This commit is contained in:
Seth Vargo 2015-06-04 11:08:01 -04:00
commit a0ad309d1f
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ The password should be sent in the POST body encoded as JSON.
```shell
$ curl $VAULT_ADDR/v1/auth/ldap/login/mitchellh \
-d "password=foo"
-d '{ "password": "foo" }'
```
The response will be in JSON. For example:

View File

@ -35,7 +35,7 @@ The password should be sent in the POST body encoded as JSON.
```shell
$ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \
-d '{"password: "foo"}'
-d '{ "password": "foo" }'
```
The response will be in JSON. For example: