Glob APIs

Glob are fast key value stores which could be controlled to change the simulation behavior.

Glob APIs could be used in the template to access the global key-value store. These values are useful to enable interaction between templates and control the behaviour of simulation through the user.

Create a new Glob entry or update an existing Glob entry

POST https://nsim.iotify.io/api/datastore/:workspaceId/glob

This endpoint allows you to create/update a Glob entry

Path Parameters

Headers

Request Body

true
// Example curl command

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" -d '{"key":"$GLOBKEY","value":"$GLOBVALUE"}' nsim.iotify.io/api/datastore/$WORKSPACE/glob

Get a Glob object

GET https://nsim.iotify.io/api/datastore/:workspaceId/glob/item/:globKey

Path Parameters

Headers

{
    "key": "CurlTest",
    "value": "Testing"
}
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/item/$GLOBKEY

Get all the Glob keys

GET nsim.iotify.io/api/datastore/:workspaceId/glob/keys

Path Parameters

Headers

key1, key2, key3, key4, key5
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/keys

Glob Delete

DELETE nsim.iotify.io/api/datastore/:workspaceId/glob/item/:globKey

Deletes the key value pair of the glob

Path Parameters

Headers

true
// Example curl command

curl -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "key:$KEY" -H "domain:nsim.iotify.io" nsim.iotify.io/api/datastore/$WORKSPACE/glob/item/$GLOBKEY

Last updated