JsonApiResponse

JsonApiResponse

JSON API response wrapper.

JSON API spec: http: //jsonapi.org/

Constructor

new JsonApiResponse(rawResponse, sdk)

Wrap a raw axios.js response object.

Source:
Parameters:
Name Type Description
rawResponse object

Raw axios.js response object.

sdk ShelfNetwork

ShelfNetwork instance.

Classes

JsonApiResponse

Members

data

Get response data.

Source:

headers

Get response headers.

Source:

httpStatus

Get response HTTP status.

Source:

meta

Get response metadata.

Source:

rawData

Get response raw data.

Source:

Methods

toJSON() → {object}

Override JSON serialization.

Source:
Returns:
Type:
object

Data to be serialized.