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

MiddlewareApiConfig

Settings for requests sent to OCC API.

export interface MiddlewareApiConfig {
	apiProvider?: ApiProvider;
	asmApiProvider?: ApiProvider;
	asmUri?: string;
	baseSiteId: string;
	baseStoreUid?: string;
	catalogId: string;
	catalogVersion: string;
	defaultCurrency: string;
	defaultLanguage: string;
	uri: string;
	urlPatterns?: string[];
}

Properties

NameRequiredTypeDescription
apiProviderOptionalApiProviderAPI provider class for the main API.
asmApiProviderOptionalApiProviderAPI provider class for the Assisted Service Module API.
asmUriOptionalstringFull Assisted Service Module API uri (e.g. https://<your-sap-api>/assistedservicewebservices/). You can omit this if you don't use ASM features
baseSiteIdRequiredstringFirst parameter of every request (e.g. electronics). It allows for fetching content for the right Base Site and - in turn - the right Base Store.
baseStoreUidOptionalstringUnique identifier of the Base Store. Can be skipped if the uid of your Base Store and the uid of your Base Site are the same.
catalogIdRequiredstringMain catalog id (e.g. electronicsProductCatalog).
catalogVersionRequiredstringMain catalog version (e.g. Online).
defaultCurrencyRequiredstringIsocode of the default currency for the current Base Store (e.g. USD). Will be sent to OCC API if no vsf-currency cookie comes from the frontend (e.g. during the first page load).
defaultLanguageRequiredstringIsocode of the default language for the current Base Store (e.g. EN). Will be sent to OCC API if no vsf-locale cookie comes from the frontend (e.g. during the first page load).
uriRequiredstringFull OCC API uri (e.g. https://<your-sap-api>/occ/v2/).
urlPatternsOptionalstring[]Array of URL patterns that can be used for domain recognition.

On this page