Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

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>(
	{ context,
	props,
	tokenMode,
	}: {
    context: SapccIntegrationContext;
    props?: T;
    tokenMode?: TokenMode;
}
) => AxiosRequestConfig

Parameters

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

Referenced Types

On this page