Namespace: configuration

belhop. configuration

This namespace contains APIs targeting the configuration of the library.

Tutorials:

Methods

Get the current API URL.

Returns:
Type Description
string Current API URL
Example
> belhop.configuration.getAPIURL()
'http://next.belframework.org/api'

staticbelhop.configuration.getSchemaURL() {string}

Get the current schema URL.

Returns:
Type Description
string Current schema URL
Example
> belhop.configuration.getSchemaURL()
'http://next.belframework.org/schema'

Set the API URL.

Name Type Description
url string

The API URL to use

Example
> // reset to the default URL
> belhop.configuration.setAPIURL(null);

Set the schema URL.

Name Type Description
url string

The schema URL to use

Example
> // reset to the default URL
> belhop.configuration.setSchemaURL(null);

Verify the library configuration and server availability.

Name Type Description
cb belhop.Callback
Tutorials: