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;
}
) => AxiosRequestConfigParameters
| Name | Required | Type | Description |
|---|---|---|---|
{ context, props, tokenMode, } | Required | { context: SapccIntegrationContext; props?: T; tokenMode?: TokenMode; } |
Referenced Types
- BaseProps
- SapccIntegrationContext
- TokenMode
AxiosRequestConfig