APIs in the RestClient module
Use the APIs in the RestClient module to utilize the service broker to manage REST API calls.
- getCancelTokenSource()
Obtains a cancel token source object. The cancel token source object can cancel a request by passing a token as a signal to it.
- getHeaderProcessor()
Obtains an entry point to the HeaderProcessor object that contains APIs to perform external header-related actions on service-broker fetch calls.
- invokeRestApi(routeKey, optionsObject, context)
Invokes a specific Pega REST API using a route key.
- isRequestCanceled(err)
Uses a cancel token source object to determine if a request has been canceled.
- RestApiOptionsObject
Object containing the properties that are sent along with a request to invoke a REST API.
Previous topic removeRelatedCase(caseID, relatedCaseID, context) Next topic getCancelTokenSource()