
Empower VCF Operations Orchestrator API integration with HttpRestClient
The HTTP-REST plugin in VCF Operations Orchestrator represents API endpoints as RestHosts in the inventory. After defining a RestHost, you can authenticate and send HTTP requests such as GET and POST to its endpoint. HttpRestClient handles common request tasks, including content types, errors and retries. HttpRestClient provides these features: HttpRestClient provides shared request handling between Orchestrator and API endpoints. It is designed to integrate with or extend any API service. You can download my HttpRestClient module as a package here or as native JS here. Import HttpRestClient into an action or workflow using one of these approaches: As a variable: As an object property: Alternatively, extend the class using classical inheritance: Parameters: The code creates an HttpRestClient instance in rest. Use this variable for API calls, or rename it if needed. Use one of the following methods to make an API call: rest.httpGet(uri, acceptType, expectedResponseCodes, headers) → {*} Parameters: Returns the request response object. rest.httpPost(uri, acceptType, content, contentType, expectedResponseCodes, headers) → {*} Parameters: Returns the request response object. rest.httpPut(uri, acceptType, content, contentType, expectedResponseCodes, headers) → {*} Parameters: Returns the request response object. rest.httpPatch(uri, acceptType, content, contentType, expectedResponseCodes, headers) → {*} Parameters: Returns the request response object. rest.httpDelete(uri,…

