ApiClientOptions
Type declaration
apiPrefix?
The base path for the JSON:API endpoint
authentication?
The authentication configuration to use for authenticated API requests.
cache?
Default cache implementation Cache
customFetch()?
Custom fetch method overrides fetch in the ApiClient
See
https://developer.mozilla.org/en-US/docs/Web/API/fetch
Parameters
• input: RequestInfo
| URL
input to the customFetch
• init?: RequestInit
additional configuration for the request like the method to use, headers, etc.
Returns
debug?
If true, logs debug messages to the console.
defaultLocale?
The default locale to use for all API requests.
See
logger?
Represents a logger object with optional logging methods for various log levels.
serializer?
Custom serializer to use for deserializing api response.
Source
types.ts:13