mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
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
eb76306316
@ -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…
x
Reference in New Issue
Block a user