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

1.3.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.048latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.048
1.1.00
1.0.00
0.7.20
0.7.00
0.6.00
0.5.00
0.4.00
0.2.00
0.1.00

Package Sidebar

Install

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

Weekly Downloads

48

Version

1.3.0

License

MIT

Unpacked Size

30.5 kB

Total Files

7

Last publish

Collaborators

  • backlineint