APIConfig: {
    baseURL?: string | ((endpoint: Endpoint) => string);
    endpoints: {
        [endpointName: string]: Endpoint;
    };
    errorInterceptors?: ErrorInterceptor | ErrorInterceptor[];
    headers?: Record<string, HeaderValue>;
    meta?: Record<string, any>;
    name: string | "default";
    queryParams?: Record<string, QueryParameterValue>;
    requestInterceptors?: RequestInterceptor | RequestInterceptor[];
    responseBodyTransformers?: ResponseBodyTransformer | ResponseBodyTransformer[];
}

Configuration for an API to be added with HTTPRequestFactory.withAPIConfig

Type declaration