RESTfulService.getPathParameters

Returns all of the HTTP path parameters configured on the endpoint path as a JavaScript object Further documentation.

Javascript example:

 var pathParms = form.rest.getPathParameters();
 
 var customerId = pathParms.customerId;
 if(customerId)
 {
    //lookup customer
 }
 ...
 

returns java.util.Map