Skip to main content

Version: 3.2.16.6

Add Custom Plugin

One of the key features of API7 Gateway is its extensibility through plugins. In addition to a wide range of existing plugins, API7 Gateway also allows you to build custom plugins to add extra functionalities and manage API traffic with custom flow. Oftentimes, you use Lua programming language to implement new plugins. API7 Gateway processes requests in phases and the relevant plugin logics get executed in each phase during the routing of requests.

Prerequisites

  1. Create a plugin in Lua.

Add Custom Plugin

  1. Select Gateway Settings from the side navigation bar, then select Custom Plugin.
  2. Click Add Custom Plugin.
  3. From the add custom plugin dialog box, do the following:
  • Plugin Source Code File: Upload the source code of your custom plugin.
  • Plugin Catalog: Select the catalog for the plugin, for example, General.
  • Plugin Description: Fill out the plugin description, for example, Replace the response body.
  • Plugin Documentation Link: Add the URL to your plugin documentation.
  • Plugin Author: Fill out the name of the plugin author.
  • Click Add.
  1. Now your custom plugin is added to the plugin list. It can be selected by global rules of services/routes/consumers/plugins in the Enable Plugin dialog box.

Below is an interactive demo that provides a hands-on introduction to adding custom services. You will gain a better understanding of how to use it in API7 Enterprise by clicking and following the steps.

Additional Resource(s)


API7.ai Logo

API Management for Modern Architectures with Edge, API Gateway, Kubernetes, and Service Mesh.

Product

API7 Cloud

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2024. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the

Apache Software Foundation