new ResourceEnumerate(environment)
Creates an instance of ResourceEnumerate.
Parameters:
Name | Type | Description |
---|---|---|
environment |
String |
Members
-
<static, readonly> NAMESPACE :String
-
Type:
- String
Methods
-
after(fn)
-
after hook. Allows to execute some logic immediately after the network call is made.
Parameters:
Name Type Description fn
function -
before(fn)
-
before hook. Allows to execute some logic right before the network call is made.
Parameters:
Name Type Description fn
function -
<async> get(apiNs, _fromCache)
-
get() returns a promise that once resolved contains the payload from the resource enumerate call.
Parameters:
Name Type Default Description apiNs
String _fromCache
Boolean true Returns:
- Type
- Promise
-
<async> init({apis, [, skipEnvironmentCheck])
-
init() updates apis.url based on supplied config object.
Parameters:
Name Type Argument Default Description {apis,
Object developmentConfig, stageConfig} skipEnvironmentCheck
Boolean <optional>
true skip dev/stage config process Returns:
- Type
- Promise