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.
post
https://nsim.iotify.io/api/datastore/
:workspaceId/glob
Create a new Glob entry or update an existing Glob entry
// 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
https://nsim.iotify.io/api/datastore/:workspaceId/glob
/item/:globKey
Get a Glob object
// 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
nsim.iotify.io/api/datastore/:workspaceId/glob/keys
Get all the Glob keys
// 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
delete
nsim.iotify.io/api/datastore/:workspaceId/glob/item
/:globKey
Glob Delete
// 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 modified 4mo ago