Methods
_parseJson(buffer) → {object}
Parse data from JSON endpoint
Parameters:
Name | Type | Description |
---|---|---|
buffer |
string | JSON response from upstream API |
- Source:
Returns:
Parsed response
- Type
- object
(async) _requestJson(attrs) → {object}
Request data from an upstream API serving JSON, parse it and validate against a schema
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
- Source:
- See:
Returns:
Parsed response
- Type
- object