importWebApiClient

Imports a Web API client library.

This is suitable for all modules of business service components.

Syntax

Copy
function importWebApiClient(libraryName : string, baseUrl : string, timeoutSeconds? : number): any;
 
Parameter Type Description
library string Name of the Web API client library.
baseUrl string Base URL of the web service accessed through the API.
timeoutSeconds (optional) number Time in seconds to wait before the HTTP request times out. Default: 100s.

Return Value

Returns a JSON object containing the API specifications. The object exposes methods matching the API's endpoints and has full IntelliSense auto-complete support.

Examples