RESTMessageV2 - setEndpoint(String endpoint)

Set the endpoint for the REST message.

By default, the REST message uses the endpoint specified in the REST message record. Use this method to override this default. You must call this method when using the RESTMessageV2 - RESTMessageV2() constructor with no parameters.

Table 1. Parameters
Name Type Description
endpoint String The URL of the REST provider you want to interface with.
Table 2. Returns
Type Description
var sm = new sn_ws.RESTMessageV2();