Description
Use this set of API to send commands on requested element.
/element/<string:elementName>/powerOn
asd
/element/<string:elementName>/powerOff
asd
/element/<string:elementName>/resetErrors
asd
/element/<string:elementName>/setCurrent
asd
/element/<string:elementName>/setSlope
asd
Example Query
To test this query, Postman can be used.
Create a new request of type POST at this URL: http://danteweb.lnf.infn.it:8000/element/<elementName>/<command>
In the Headers Tab, add the Content-Type header and as value use application/json (Fig. 1);
Fig 1 - Added Content-Type header to query
In the Body Tab, add the needed data to execute command (Fig. 2);
Fig. 2 - Added json data in Body section (example of ECHO query)
Press on Send button and the response will be available in the bottom part of Postman Window. You should see a json message like the one in Fig. 3;
Fig. 3 - JSON Response
For a better understanding on how to use this API, please refer to TCP_DCS protocol documentation page.