mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Replace docs references to PUT with POST (#14270)
The operations are handled identically, but ~85% of the references were POST, and having a mix of PUT and POST was a source of questions. A subsequent commit will update the internal use of "PUT" such as by the API client and -output-curl-string.
This commit is contained in:
@@ -64,7 +64,7 @@ generation attempt can take place at a time.
|
||||
|
||||
| Method | Path |
|
||||
| :----- | :--------------------------- |
|
||||
| `PUT` | `/sys/generate-root/attempt` |
|
||||
| `POST` | `/sys/generate-root/attempt` |
|
||||
|
||||
### Parameters
|
||||
|
||||
@@ -76,7 +76,7 @@ generation attempt can take place at a time.
|
||||
|
||||
```shell-session
|
||||
$ curl \
|
||||
--request PUT \
|
||||
--request POST \
|
||||
http://127.0.0.1:8200/v1/sys/generate-root/attempt
|
||||
```
|
||||
|
||||
@@ -122,7 +122,7 @@ nonce must be provided with each call.
|
||||
|
||||
| Method | Path |
|
||||
| :----- | :-------------------------- |
|
||||
| `PUT` | `/sys/generate-root/update` |
|
||||
| `POST` | `/sys/generate-root/update` |
|
||||
|
||||
### Parameters
|
||||
|
||||
@@ -143,7 +143,7 @@ nonce must be provided with each call.
|
||||
|
||||
```shell-session
|
||||
$ curl \
|
||||
--request PUT \
|
||||
--request POST \
|
||||
--data @payload.json \
|
||||
http://127.0.0.1:8200/v1/sys/generate-root/update
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user