Mega Menu API

Mega Menu API

1. Amasty\MegaMenu\Api\LinkRepositoryInterface - class for managing links inside the menu:
  1. POST /V1/amasty_megaMenu/link, method="save" - create a link;
  2. PUT /V1/amasty_megaMenu/link/:entityId, method="save" - edit a link;
  3. DELETE /V1/amasty_megaMenu/link/:entityId, method="deleteById" - delete a link;
  4. GET /V1/amasty_megaMenu/link, method="getById" - get information about a link;
  5. GET /V1/amasty_megaMenu/link/all, method="getList" - get a list with all links.

2. Amasty\MegaMenu\Api\ItemRepositoryInterface - class for managing menu items:
  1. POST /V1/amasty_megaMenu/item, method="save" - create an item;
  2. PUT /V1/amasty_megaMenu/item/:entityId, method="save" - edit an item;
  3. DELETE /V1/amasty_megaMenu/item/:entityId, method="deleteById" - delete an item;
  4. GET /V1/amasty_megaMenu/item, method="getById" - get information about an item;
  5. GET /V1/amasty_megaMenu/item/all, method="getList" - get a list with all items.
      • Related Articles

      • What Amasty extensions support API?

        Each Amasty extension that has API support, includes the etc/webapi.xml file. The webapi.xml file contains API configurations with the list of available API requests. For example, a request from the Custom Form module interface: 1 - endpoint URL; 2 - ...
      • How does the menu tree work in the Mega Menu extension?

        In simple terms, Mega Menu items can be categorized into two parts: the default Magento product categories and custom menu items. Categories When it comes to product categories, the Mega Menu extension mirrors the category hierarchy established ...
      • Mega Menu | GraphQL

        Queries amMegaMenuTree description: get menu tree amMegaMenuAll description: get all menu items amMegaMenuWidget description: get information about the Amasty MegaMenu Products Widget
      • Is there a way to limit what items are displayed in the Mega Menu?

        There are two possible options to exclude some categories from the menu. First one is disabling a category from displaying in the top menu individually with the setting Include in Menu. Or, in order to hide the subcategories block, it is necessary to ...
      • How to add product links to the menu?

        Our Mega Menu extension allows you to seamlessly integrate not only category links but also product URLs into your website menu. Here are two methods to accomplish this: 1. Using Custom Menu Item: Navigate to the Custom Menu Items section in Amasty > ...