Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.9 KB

File metadata and controls

66 lines (45 loc) · 1.9 KB

Sample plugin stage

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.

1. Build the plugin stage

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.

2. Deploy the stage

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.

Upload it to the blob store

  1. Navigate to System > Blobs.

  2. Click Add.

  3. Select Query Stage Plugin.

  4. Click Browse…​ and select your plugin file.

  5. Click Upload

Deploy it using gradle

./gradlew -p examples/sample-plugin-stage deploy -PfusionUser=[user] -PfusionPassword=[password]

Deploy it with the REST API

curl -u [user]:[password] -X PUT -H "Content-Type:application/zip" --data-binary @sample-plugin-stage-0.0.1.zip https://<fusion-host>/api/query-stage-plugins