It depends on what HTTP method you are using. If GET, then it would need to be in path or query string. But let us assume it is POST and the data is in the payload. So you would need to indicate the input parameters should be wrapped. Thus, a client would do a POST request with following payload, assuming JSON:
{
"IN_ACTION" : "STOP",
"IN_DATA" : "KEY1"
}
The 3-part series of articles titled "Building a REST service with integrated web services server" at Integrated web services - articles
would be a good resource.
I hope this helps.
------------------------------
Nadir K Amra
------------------------------