Broadleaf Microservices
  • v1.0.0-latest-prod

Content Items (Browse, since 1.5.7)

Operations for retrieving Content Items.

Table of Contents

Get Content Items

Operation

BrowseClient#getContentItems(request, options);

Parameters

Parameter Type Required? Description

request

ContentResolverRequest

Represents a request to retrieve ContentItems from a commerce-facing context.

options

ClientCallOptions

Options passed to the HTTP request call to customize the request configuration.

Response

This function returns a ContentResolverResponse.

Example

Example of retrieving the content items by model name
const contentItems = await browseClient.getContentItems({
    contentZoneName: 'Homepage Banner'
});

console.log(contentItems);