# Preface
Plug-ins contributed by the community are under https://github.com/orgs/fizzgate/repositories?type=all and are generally named fizz-plugin-* or fizz-*-plugin. Some commonly used plug-ins are introduced below.
# Data mask plug-in
https://gitee.com/fizzgate/fizz-plugin-data-mask
Example:
If the backend interface of the gateway proxy responds to json data {"mobile":"13710241024"}, and then needs to mask the mobile phone number, you can configure a plug-in for the routing of the interface:
After configuration, the sourceType request header is included when requesting the interface, its value is ch1, and the received response is {"mobile":"137xxxxxx24"}.
# Request header plug-in
https://gitee.com/fizzgate/fizz-plugin-header-request
Example:
Configure the plugin for routing:
After this configuration, the request header received by the route's backend interface will have hdr2=val2.
# Response header plugin
https://gitee.com/fizzgate/fizz-plugin-header-response
The usage is the same as the request header plug-in.
# ip black and white list plug-in
https://gitee.com/fizzgate/fizz-plugin-ip
Example:
Configure the plugin for routing:
After configuration, the x-forwarded-for request header is included when requesting the interface, its value is 2.4.6.9, and the response received is {'msg':'The request comes from an illegal IP','code':-1}.
# Cache plugin
https://gitee.com/fizzgate/fizz-simple-cache-plugin
Example:
Assume the request is http://127.0.0.1:8600/proxy/xservice/ypath?p1=v1. The plug-in uses the entire uri as the cache key and uses the local cache:
After configuration, when http://127.0.0.1:8600/proxy/xservice/ypath?p1=v1 is requested for the first time, the request will go to the backend service, and subsequent requests will hit the cache.
# Introduction to FizzGate Integration Platform
FizzGate is a microservice aggregation gateway developed based on Java. It can achieve hot service orchestration and aggregation, automatic authorization selection, online service script coding, online testing, high-performance routing, API audit management, callback management, etc., and has powerful customization The plug-in system can be expanded by itself and provides a friendly graphical configuration interface, which can quickly help enterprises manage API services, reduce middle-layer glue codes, reduce coding investment, and improve the stability and security of API services.
Official website: https://www.fizzgate.com (opens new window)
GitHub: https://github.com/fizzgate/fizz-gateway-node (opens new window)
Code cloud: https://gitee.com/fizzgate/fizz-gateway (opens new window)
Getting Started Tutorial: https://www.fizzgate.com/fizz/guide/GettingStarted/ (opens new window)
Advanced tutorial: https://www.fizzgate.com/fizz/guide/advanced/ (opens new window)
Author: lancer