Actions

Version 23.0.8844


Actions

Version 23.0.8844


Actions can be used to extend the set of operations on resources and to execute unrelated actions on the server. Actions must be executed as an HTTP POST request. The following is an example action invocation:

POST http://MyServer:MyPort/api.rsc/WashCar/
{
  "Wax": "Wax_1"
}

Here is the corresponding response:

{
  "Complete":
  "true"
}

Use URL Parameters as Input

In cases where the client does not support the HTTP POST method, the Action can be invoked using the URL parameters @x-http-method. The inputs for the Action can then be specified as additional URL parameters:

http://MyServer:MyPort/api.rsc/WashCar?@x-http-method=POST&URLparam1=my_url_parameter1&urlparam2=my_url_param2