Broadleaf Microservices
  • v1.0.0-latest-prod

Menu Hierarchy

The following operations allow you to retrieve store menu and menu hierarchy.

Table of Contents

Get Menu Hierarchy

Operation

MenuClient#getMenuHierarchy(menuName, options);

Parameters

Parameter Type Required? Description

menuName

string

Provide a menu name to fetch

options

MenuClientCallOptions

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

Response

This function returns a NameNavigableMenu.

Example

Example of retrieving a menu by its name
const menu = await menuClient.getMenuHierarchy('FOOTER_MENU');

console.log(menu);