Provides the REST service configuration. For each setting, implementations can provide either a property or a get
accessor function. If both are present, the result returned by the function will be used.
Members
appsBaseUrl :string
The base application URL.
Type:
- string
baseUrl :string
The base service URL for all REST calls.
Type:
- string
corsEnabled :boolean
Whether to enable CORS.
Type:
- boolean
headers :Object.<string, string>
An object defining the HTTP request headers to set for each call.
Type:
- Object.<string, string>
Methods
getAppsBaseUrl() → {string}
The base application URL.
Returns:
- Type
- string
getBaseUrl() → {string}
The base service URL for all REST calls.
Returns:
- Type
- string
getHeaders() → {Object.<string, string>}
An object defining HTTP request headers to set.
Returns:
- Type
- Object.<string, string>
isCorsEnabled() → {boolean}
Whether to enable CORS.
Returns:
- Type
- boolean