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 global key value store. These values are useful to enable interaction between templates and control the behavior of simulation through user.

An example of how to use glob APIs in the template could be seen here.

get
Glob Get

https://api.iotify.io/v1/glob/:glob
Retrieves the current value of glob variable
Request
Response
Request
Path Parameters
required
string
Glob key name
Response
200: OK
{ success: true, result: 'glob value'}

post
Glob Set

https://api.iotify.io/v1/glob/:glob
Sets the current value of glob variable
Request
Response
Request
Path Parameters
required
string
Glob key name
Body Parameters
value
required
string
Value which should be set for the glob. The value would be stored as a UTF-8 string internally so all numbers or floats will also be returned as string.
Response
200: OK
{ success: true, result: 'glob value'}

delete
Glob Delete

https://api.iotify.io/v1/glob/:glob
Deletes the current value of the glob
Request
Response
Request
Response
200: OK
{ success: true, result: 'Deleted'}