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 ...
      • Is it possible to create a hierarchy within custom menu items?

        With the Premium plan of the Mega Menu extension, it's possible to create a hierarchy within custom menu items. To establish a new custom item level, follow these steps: Step 1. Go to Content → Amasty Mega Menu → Custom Menu Items and click on Add ...