In order to add functionality to the API you need to:
- Have at least one class that extends org.parosproxy.paros.extension.Extension.java
- Add a class that extends org.zaproxy.zap.extension.api.ApiImplementor.java
- Call API.getInstance().registerApiImplementor(api); from your Extension.hook(ExtensionHook extensionHook) method.
- If your have implemented some option parameters you may want to add them to your API using the ApiImplementor.addApiOptions(AbstractParam param) method - this uses reflection to add standard parameters to the API.
Links:
- Back: Python client API
- Home: The ZAP API