Alokai

createRequestOptionsWithJsonHeader

Superset of the createRequestOptions helper. Adds an additional 'content-type': 'application/json' header.

CAUTION: Remember to pass props if Props' interface inside API Endpoint extends BaseProps.

Signature

createRequestOptionsWithJsonHeader: <T extends BaseProps>(
	input: {
  axiosRequestOptions?: AxiosRequestConfig;
  context: SapccIntegrationContext;
  props?: T;
  tokenMode?: TokenMode;
}
) => AxiosRequestConfig

Parameters

NameRequiredTypeDescription
{ axiosRequestOptions, context, props, tokenMode }Required
inputRequired{ axiosRequestOptions?: AxiosRequestConfig; context: SapccIntegrationContext; props?: T; tokenMode?: TokenMode; }

Referenced Types

On this page