Home > @vsf-enterprise/sap-commerce-webservices-sdk > PageApi > getPageById

PageApi.getPageById() method

Given a page identifier, return the page data with a list of cms content slots, each of which contains a list of cms component data. Get page data with list of cms content slots

Signature:

getPageById(baseSiteId: string, pageId: string, fields?: 'BASIC' | 'DEFAULT' | 'FULL', options?: any): Promise<import("axios").AxiosResponse<object>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
pageId string Page Id
fields 'BASIC' | 'DEFAULT' | 'FULL' Response configuration (list of fields, which should be returned in response)
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<object>>

Exceptions

{RequiredError} PageApi