Mega Menu API Reference

Mega Menu API

Info
We have created a public API collection for Mega Menu module with all available queries and sample data that you can both test via our demo endpoints and copy to run local tests in your Magento environment. More details about using public collections can be found in the following FAQ post.

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 - ...
      • Can I test how your modules work with API?

        Our team have created a public Postman workspace where we provide access to API collections from our modules. You can copy these API collections to test them in your own Magento installation together with our modules, and some collections can be ...
      • 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 the Mega Menu module compatible with shared catalog?

        The Mega Menu module seamlessly integrates with Magento's B2B feature, specifically the shared catalog functionality. Shared catalogs are tailored for B2B environments, allowing distinct customer groups to have unique catalog views. The Mega Menu ...