This namespace contains APIs targeting the configuration of the library.
- Tutorials:
Methods
-
staticbelhop.configuration.getAPIURL() {string}
-
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' -
staticbelhop.configuration.setAPIURL(url)
-
Set the API URL.
Name Type Description urlstring The API URL to use
Example
> // reset to the default URL > belhop.configuration.setAPIURL(null); -
staticbelhop.configuration.setSchemaURL(url)
-
Set the schema URL.
Name Type Description urlstring The schema URL to use
Example
> // reset to the default URL > belhop.configuration.setSchemaURL(null); -
staticbelhop.configuration.test(cb)
-
Verify the library configuration and server availability.
Name Type Description cbbelhop.Callback - Tutorials: