Broadleaf Microservices
  • v1.0.0-latest-prod

Item List Item Provider

Table of Contents

Overview

Provider for interfacing with ItemListItems 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 ExternalItemListItemProvider, 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.

  • broadleaf.cartoperation.cartprovider.itemListsItemsUri: The context path for managing individual ItemListItems This is appended to the url property, a specific ItemList id, and the itemListsUri property.

  • broadleaf.cartoperation.cartprovider.itemListsItemsUri: The context path for managing bulk ItemListItem requests. This is appended to the url property, a specific ItemList id, and the itemListsUri property.

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