mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
fix doc example to submit valid json in POST body
I don't know if there is some version of curl that auto-generates json but the example didn't work for me on curl 7.32.0. Submitting the data as JSON works though.
This commit is contained in:
parent
590a1582be
commit
d1100c6293
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue