a fully qualified JSON:API root endpoint URL
Assembles a correctly formatted JSON:API endpoint URL.
a JSON:API resource endpoint
id of an individual resource
user provided JSON:API parameter string or DrupalJsonApiParams object
a full endpoint URL
Wraps fetch/fetchApiIndex function so it can be overridden.
Fetches data using our fetch method.
the assembled JSON:API endpoint
response object
make the request anonymously if true
data fetched from JSON:API endpoint
Wraps fetch/fetchJsonapiEndpoint function so it can be overridden.
Get the contents of the root API from local state if it exists, or fetch it from Drupal if it doesn't exist in local state.
a promise containing an index of api links
Assembles an authorization header using an existing token if valid, or by fetching a new token if necessary.
a string containing an authorization header value
Get an object from local state if it exists, or fetch it from Drupal if it doesn't exist in local state.
a promise containing deserialized JSON:API data for the requested object
Get an object by path alias from local state if it exists, or fetch it from Drupal if it doesn't exist in local state.
a promise containing deserialized JSON:API data for the requested object
Generated using TypeDoc
Format apiBase, apiPrefix, and combine into apiRoot.