43
Subject to error and alteration
Integration Into Existing Systems
istrator password or as “operator” using the user password.
Here you can also specify whether REST is permitted to switch
the output.
Read access
For read access REST uses the HTTP command GET.
The Web-IO supports three formats for replies 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 reply 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
}
],
“output” : [
{
“number” : 0,
“state” : 0
}
],
“counter” : [
{
“number” : 0,
“state” : 0