@drupal-api-client/decoupled-router-client
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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 requests
  • apiPrefix: The base path for the JSON:API endpoint
  • cache: An optional caching interface
  • customFetch: An optional method to use in place of the default fetch method
  • authentication: Optional credentials for authenticated requests
  • defaultLocale: An optional locale to use for requests by default.

/@drupal-api-client/decoupled-router-client/

    Package Sidebar

    Install

    npm i @drupal-api-client/decoupled-router-client

    Weekly Downloads

    70

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    14.8 kB

    Total Files

    7

    Last publish

    Collaborators

    • backlineint