Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Catalog Pages API handler

Return a single catalog page model with product or category information populated.

HTTP Verb – GET

URL – /api/v1/catalogpages

Description – Return a single catalog page model with product or category information populated

Base – HandlerBase<GetCategoryByPathParameter, GetCategoryByPathResult>

Base – HandlerBase<GetCatalogPageParameter, GetCatalogPageResult>

Handlers

OrderHandlerDescription
500GetCategoryByPathHandlerGets category by path. If GetSubCategories parameter is 'true' then handler also return subcategories.
OrderHandlerDescription
500CreateRootBreadcrumbAdds the "Home" breadcrumb to the BreadCrumbcollection on the result object.
600ProcessRequestPathProcesses the URL request path to add breadcrumbs to the BreadCrumbcollection on the result object. This adds both category and product breadcrumbs. If the URL path contains a category, the Categoryproperty on the result object is populated with the category data. If the URL path ends with a product URL segment, the Productproperty on the result object is populated with the product data.
700PopulateSubCategoriesPopulates the subcategories for the category in the result. If the GetSubCategoriesproperty on the parameter object equals "false" or the URL path did not contain a category, this handler is skipped. The subcategories are stored in the SubCategoriescollection on the result object.
800PopulateCanonicalPathCreates the canonical path for the product or category. If the Productproperty on the result object is not null, the CanonicalPathproperty on the result object will point to the product page. Otherwise, the CanoncialPathproperty will point to the catalog page (associated with the Catalogproperty on the result object).
900PopulateRedirectUrlIf the request path (Pathproperty on the parameter object) does not equal the actual (or canonical) category or product URL, the RedirectUrlproperty on the result object is populated with the actual URL to redirect appropriately. Also, the NeedRedirectproperty on the result object is set to "true".