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:
commit
e16f1032d4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue