kv
This endpoint allows to use kv core module
all
request
POST /kv/all
Example
Its request is analogous to the following lua script:
response
put
request
POST /kv/put/{key}
{key}
- key to put- request body - value to put
Example
curl -X "POST" "http://127.0.0.1:2020/kv/put/var1" \
-H 'Content-Type: text/plain; charset=utf-8' \
-d "barbaz"
Its request is analogous to the following lua script:
response
upsert
request
POST /kv/upsert/{key}
{key}
- key to put- request body - value to put
Example
curl -X "POST" "http://127.0.0.1:2020/kv/upsert/var1" \
-H 'Content-Type: text/plain; charset=utf-8' \
-d "barbaz"
Its request is analogous to the following lua script:
response
get
request
POST /kv/get/{key}
{key}
- key to get
Example
Its request is analogous to the following lua script:
response
delete
request
POST /kv/delete/{key}
{key}
- key to delete
Example
Its request is analogous to the following lua script: