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 fnfunction -
before(fn)
-
before hook. Allows to execute some logic right before the network call is made.
Parameters:
Name Type Description fnfunction -
<async> get(apiNs, _fromCache)
-
get() returns a promise that once resolved contains the payload from the resource enumerate call.
Parameters:
Name Type Default Description apiNsString _fromCacheBoolean 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} skipEnvironmentCheckBoolean <optional>
true skip dev/stage config process Returns:
- Type
- Promise