Alokai

createProxyApi

Signature

createProxyApi: <T extends object>(
	OpenApiClass: new (...params: ConstructorParameters<typeof SapccApi>
) => T,
	axiosInstance?: AxiosInstance) => WithContext<WithoutDefaults<T>>

Parameters

NameRequiredTypeDescription
OpenApiClassRequirednew (...params: ConstructorParameters<typeof SapccApi>) => TGenerated SDK Class from OpenAPI standard fulfilling Alokai's requirements
axiosInstanceOptionalAxiosInstance

Returns

creates a Proxy object that behaves like an object, but wraps the OpenApiClass instance.

Referenced Types

On this page