Actions
Version 23.0.9145
Version 23.0.9145
Actions
Use actions 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, you can invoke actions using the @x-http-method
URL parameter. You can then specify the inputs for the action as additional URL parameters, and shown in the following example:
http://MyServer:MyPort/api.rsc/WashCar?@x-http-method=POST&URLparam1=my_url_parameter1&urlparam2=my_url_param2