The sample plugin stage is an example project with two simple querying stages:
-
Update request - Add a new query parameter with a specific value to each query request.
-
Update response - Add a new field with a specific value to each query response.
This is also a demonstration of a basic gradle
project that assembles a Fusion query stage plugin .zip
.
From the main folder, call:
./gradlew -p examples/sample-plugin-stage assemblePlugin
Substitute the path to your project.
This creates a plugin .zip
file (with required manifest file) inside the build/libs
folder.
You can choose from several different ways to deploy the sample plugin stage:
After successful deployment, new stages should be visible in the Stages
list in the Fusion Query Pipelines UI.
-
Navigate to System > Blobs.
-
Click Add.
-
Select Query Stage Plugin.
-
Click Browse… and select your plugin file.
-
Click Upload
./gradlew -p examples/sample-plugin-stage deploy -PfusionUser=[user] -PfusionPassword=[password]