mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
doc(api) correct release lock curl command
related to #638 issue - DELETE request body is ignored typo fixed
This commit is contained in:
parent
aeb9e0633a
commit
a20ce3e7a5
@ -903,7 +903,7 @@ If the TTL is not specified or is not a number then you'll receive the following
|
|||||||
When the client is finished with the lock, simply send a `DELETE` request to release the lock:
|
When the client is finished with the lock, simply send a `DELETE` request to release the lock:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -L http://127.0.0.1:4001/mod/v2/lock/mylock -XDELETE -d index=5
|
curl -L http://127.0.0.1:4001/mod/v2/lock/mylock?index=5 -XDELETE
|
||||||
```
|
```
|
||||||
|
|
||||||
If the index or value is not specified then you'll receive the following error:
|
If the index or value is not specified then you'll receive the following error:
|
||||||
@ -953,7 +953,7 @@ Will return the current index:
|
|||||||
2
|
2
|
||||||
```
|
```
|
||||||
|
|
||||||
If you specify a field other than `field` or `value` then you'll receive the following error:
|
If you specify a field other than `index` or `value` then you'll receive the following error:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user