Closed imclint21 closed 4 years ago
Hey,
Actually, the PATCH method is used to make special operations like this with a JSON object that define the operation and properties!
PATCH
Maybe we can use some HTTP methods like LOCK / UNLOCK or an other way.
LOCK
UNLOCK
This is some propositions to perform some operations.
curl -XPATCH -d 'LOCK' 'https://localhost:7021/api/kv/hello_world'
curl -XPATCH -d 'operation=lock' 'https://localhost:7021/api/kv/hello_world'
curl -XPATCH -d '{"operation": "LOCK"}' 'https://localhost:7021/api/kv/hello_world'
Best regards
There are some things that could be great to have:
?meta=true
?meta
GET
Hey,
Actually, the
PATCH
method is used to make special operations like this with a JSON object that define the operation and properties!Maybe we can use some HTTP methods like
LOCK
/UNLOCK
or an other way.Actions Performing
This is some propositions to perform some operations.
Inline:
Parameters:
Json:
Best regards