Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Use this API to send a command on requested devil. Needed arguments are:

  • devil_numberdevilNumber: The devil number to query;
  • opcode: TCP_DCS opcode to call;
  • arguments: String containing command argumentsin TCPDCS protocol;

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/devil/sendRawCommand

In the Headers Tab, add the Content-Type header and as value use application/json (Fig. 1);

Image AddedImage Removed
Fig 1 - Added Content-Type header to query

In the Body Tab, select raw for format and add the needed data to execute command (Fig. 2);

Image AddedImage Removed
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;

Image AddedImage Removed
Fig. 3 - JSON Response

...