Grid RESTful API Supported Functions
Grid RESTful API Start-up Guide
8
Example JSON Response:
{
"message": "Logged in ok",
"data": {
"token":
"eyJ0eXAiOiJKV1QiLCJhbGcoIoJIUzI1NiJ9.ImlkfDI1MGYxYWIwLWQzMjktNGQyNS1hMTE5LThlOTJhZDc0MzcyZXx0eXBlfH
RpbWVzdGFtcHxpc0VuY3J5cHRlZHxvcmlnaW58MTAtMC0yOC0xODFfNTcwMDB8cG9saWN5fDB8dHRsfGluYWN0aXZpdHlf
dGhyZXNob2xkfDF8cGVybWlzc2lvblNldEtleXwvT0VNK0FkbWluLy9fTUVTSF9HU1QvfGlzVG9rZW58dXNlcm5hbWV8ZWdnZ
XJzamVuc0BnbWFpbC5jb21eMHxKNjZCOFBGR3wwfDBeXiQwfDF8MnxIfDN8SXw0fC0yfDV8Nnw3fCQ4fCQ5fEp8QXwtM11
8QnwkOXxLfEF8LTNdXXxDfER8RXwtMXxGfEddIg.ihjURRHILcXp-iTl4FvjjAma1sI1_CDINGyQuSNacDM"
},
"error": null
}
2.3
Data Read/Write
2.3.1 Data Path Parameter
Whenever a parameter is specified as a path, this acts as a wildcard and includes all items that
appear below the specified path.
Examples:
•
/device1/plc1/point3
returns the JSON value of point3 (e.g. 1.234)
•
/device1/plc1
returns a JSON value with all points belonging to plc1:
{
"point1": true,
"point2": false,
"point3": 1.234
}