Browse Source

Merge pull request #646 from metaflow/api-doc-release-lock

doc(api) correct release lock curl command
Brandon Philips 11 years ago
parent
commit
9129475a51
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Documentation/api.md

+ 2 - 2
Documentation/api.md

@@ -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:
 
 ```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:
@@ -953,7 +953,7 @@ Will return the current index:
 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
 {