This is a sample plugin to get started. Metamug API Plugin must be a maven project and must contain Metamug API SDK as a dependency.
This example contains
- RequestProcessable
- ResponseProcessable
- ResultProcessable
Download the zip from here and upload it into a running console. http://localhost:7000/console/#/plugin
You can declare the execute tag in the resource file to invoke these plugin classes.
<Execute classname="com.metamug.plugin.RequestExample" id="someBusinessLogic" />
Or they can be declared as a part of SQL tag. To know more about metamug api plugins, read the docs here.