Broadleaf Microservices
  • v1.0.0-latest-prod

Item List Provider

Table of Contents

Overview

Provider for interfacing with ItemLists when operations require persistence or retrieval. The default implementation facilitates HTTP requests against the Cart Services endpoints.

Configuration

ExternalCartProperties defines the properties used to configure ExternalItemListProvider, which is the default provider. These include:

  • broadleaf.cartoperation.cartprovider.url: The base url for an external cart service, which handles persistence of lists as well as carts.

  • broadleaf.cartoperation.cartprovider.itemListsUri: The context path for CRUD operation on item lists. This is appended to the url property.

Example of building request from properties
UriComponentsBuilder.fromHttpUrl(properties.getUrl())
        .path(properties.getItemListsUri())
        .toUriString();