Merge pull request #3833 from szemek/curl-binary

Documentation KV Create/upload key, upload binary data or file with line breaks via curl
This commit is contained in:
James Phillips 2018-01-25 13:15:59 -08:00 committed by GitHub
commit e16f1032d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,13 +197,20 @@ The table below shows this endpoint's support for
The payload is arbitrary, and is loaded directly into Consul as supplied.
### Sample Request
### Sample Requests
```text
```bash
$ curl \
--request PUT \
--data @contents \
https://consul.rocks/v1/kv/my-key
# or
$ curl \
--request PUT \
--data-binary @contents \
https://consul.rocks/v1/kv/my-key
```
### Sample Response