Uses the HTTP get method to start the REST service. You can use this method with the following signatures:
ca_pam_getRESTData(url, callBack);
ca_pam_getRESTData(url, doNotValidateCert, callBack);
Note:The dataset expressions are supported in the ca_pam_getRESTData function.
Defines the URL of the HTTP request. The URL starts with http:// or https://.
Specifies whether a valid SSL certificate is found. This field is relevant when querying an HTTPS URL.
Defines a list of key/value pairs that sets headers in the request.
Defines a reference to the function object to call after retrieving the data, including its onSuccess and onFailure methods.
When the function retrieves the data, either the onSuccess(result) or onFailure(caught) callBack function runs. The function itself does not return any value.
Example
You can find this function in the out-of-the-box content in CA Process Automation.
Example 2
The dataset expressions are supported in the ca_pam_getRESTData function as shown in the following example:
ca_pam_getRESTData('Datasets["/Forms/RestDataset"].url+"'+userSearch+'"',callBack);
Note: You need to provide an absolute path of the dataset.
|
Copyright © 2014 CA.
All rights reserved.
|
|