37
Integration in bestehende Systeme
Read access
For read access REST uses the HTTP command GET.
The Web IO supports three formats for responses to REST requests:
• JSON
• XML
• Text
The format used for replies can be determined using the request. Using
http://<ip-adresse>/rest/json
for example opens the entire process image of the Web-IO in JSON format. The
response body then looks as follows:
{
“info” :
{
“request” : “ / rest / json”,
“time” : “2016 - 09 - 09,
09 : 42 : 54”,
“ip” : “10.40.22.227”,
“devicename” : “WEBIO - CAFE27”
},
“iostate” :
{
“input” : [
{
“number” : 0,
“state” : 0
},
{
“number” : 1,
“state” : 0
}
],
“output” : [
{
“number” : 0,
“state” : 0
},
{
“number” : 1,
“state” : 0
}
],
“counter” : [
{
“number” : 0,
“state” : 0
},
{