@drupal-api-client/decoupled-router-client
v1.1.0
Published
Client to interface with Drupal's Decoupled Router endpoint
Downloads
98
Readme
decoupled-router-client
This package contains the DecoupledRouterClient
class which extends the base ApiClient
class from the @drupal-api-client/api-client
package. See https://www.drupal.org/project/api_client for more information about this project.
Installation
npm install @drupal-api-client/decoupled-router-client
Usage
This class includes the following parameters:
baseUrl
: The url to use for all API requestsapiPrefix
: The base path for the JSON:API endpointcache
: An optional caching interfacecustomFetch
: An optional method to use in place of the defaultfetch
methodauthentication
: Optional credentials for authenticated requestsdefaultLocale
: An optional locale to use for requests by default.