1.0.0 • Published 1 month ago

@drupal-api-client/api-client v1.0.0

Weekly downloads
-
License
GPL-2.0-or-later
Repository
-
Last release
1 month ago

api-client

This package contains the base class for the Drupal API Client. For more information, see https://www.drupal.org/project/api_client for more information about this project.

Installation

npm install @drupal-api-client/api-client

Usage

The ApiClient is a base class meant to be extended. The base 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.

For an example of an extended ApiClient, see JsonApiClient

1.0.0

1 month ago

0.7.2

2 months ago

0.7.0

3 months ago

0.6.0

3 months ago

0.5.0

3 months ago

0.4.0

3 months ago

0.2.0

6 months ago

0.1.0

7 months ago