This project contains a set of libraries for implementing API Gateway Filters and making advanced scripts.
To build this artefact, you need the following items:
- JDK 11
- API Gateway and Policy Studio 7.7.20240228
Code base is actually stable and has been tested from 20220530 (JDK 8) to 20240228 (JDK 11). Even if jars compiled using another release should work, it is recommended to use artifacts produced for a particular release using the branch specific the the API Gateway version you're targeting (some bytecode changes can trigger a MethodNotFoundException). If no branch already exists please open an issue for it or make a Pull Request for this new branch.
A playground Dockerfile is provided. It provides an on-premise API Gateway, Policy Studio, In-Browser GUI and IDE with the FDK pre-installed.
The Filter Devkit can be installed in two ways :
- Full feature set by importing the runtime typeset (ExtensionLoader loadable module and Advanced script custom filter,
- Groovy Script only context and extensions
- Filter Code Generator (Java Quick Filters)
- Advanced script filter
- Extension subsystem (child first ClassLoader, selector accessible methods and script extensions)
It's possible to use the Filter DevKit without importing the base typeset. In this case the following feature are available
- Script context for groovies (bring resource binding to default script filter)
- Script extensions load mechanism within script context creation (limited to groovy scripts)
- Static only reflection of extension context within script context creation.
Additionally, generated filters are independent base extensions. So it is safe to import and use generated filters without importing and using the Filter DevKit typeset.
A QuickStart procedure is provided by a Docker Image Otherwise, you can follow the Build and Install instructions.
YAML Entity Store is actually not supported.
Happy testing !