34 CONTENTS
10 External APIs
The controller can be accessed programmatically using a number of protocols and APIS, including:
• the REST-like API (over HTTP),
• JSON-RPC (over HTTP),
• SNMP,
• UPnP
10.1 Common external API settings
ExternalAPIs
AllowJSON-RPC:
AllowREST-styleAPI:
EnableUPnPservice:
EnableSNMPservice:
Relaxnon-HTMLmethodCSRFchecks:
Relaxnon-HTMLcontenttypeCSRF
checks:
Common external API settings
Each of the external APIs can be enabled separately.
HTTP APIs perform cross-site request forgery checking to make sure they are not called by a misguided browser
without JavaScript, bypassing browser security checks (a custom header needs to be present in the requests).
Browsers can normally issue GET and POST requests with URL-encoded or multipart content types; you can tick
the corresponding "relax ... checks" checkboxes to skip the checks in cases where the method or content type
indicates that the request couldn't have been sent by a browser without JavaScript.
10.2 REST-like API
Name(viewdetaileddescription)
User-visiblerelayname
string
representsavalueinpersistentstorage
write isdeniedif not administrativeuser
nosynchronizationrequirements
UptoRelayobject
Allowedmethods: GET PUT PATCH
REST-like API demo
DLI DIN4 User’s Guide: 20170809T111540Z