Hi.
Is the ApiImplementor being added to the API? Something like:
https://github.com/zaproxy/zap-extensions/blob/e10ce3a39cd9a2e6835d2bab09d74a580a01c524/src/org/zaproxy/zap/extension/selenium/ExtensionSelenium.java#L115
The ApiImplementor must implement the "handleApiAction" to handle the
actions:
https://github.com/zaproxy/zap-extensions/blob/0c00d61750279f5f0a6a92994b6a929c5377ebf3/src/org/zaproxy/zap/extension/reveal/RevealAPI.java#L57
The "XXX" should be the value returned by your
ApiImplementor.getPrefix() method.
Best regards.
On 13/09/16 15:12, 'Prakhash Sivakumar' via OWASP ZAP Developer Group wrote:
> Hi all,
>
> I'm trying to call a ZAP extension from zaproxy plugin as shown below,
> createJiraIssues is the method name,
>
>
> zapClientAPI.callApi("XXX", "action", "createJiraIssues", map);
>
>
> In the extension, I have created a class extending from ApiImplementor
> and it has the method call createJiraIssues.
>
>
> What are the configurations I need to add inside my extension, then the
> zaproxy will be able to identify the API correctly and execute the
> operation. *PS- I have developed a maven project and I have used
> artifacctId as the first parameter for zapClientAPI.callApi(), then I'm
> getting the below error* 21359 [ZAP-ProxyThread-52] WARN
> org.zaproxy.zap.extension.api.API - ApiException while handling API
> request: No Implementor (no_implementor) at
> org.zaproxy.zap.extension.api.API.handleApiRequest(Unknown Source) at
> org.parosproxy.paros.core.proxy.ProxyThread.processHttp(Unknown Source)
> at org.parosproxy.paros.core.proxy.ProxyThread.run(Unknown Source) at
> java.lang.Thread.run(Thread.java:745) No Implementor
>
>
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP Developer Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
zaproxy-devel...@googlegroups.com
> <mailto:
zaproxy-devel...@googlegroups.com>.
> To view this discussion on the web, visit
>
https://groups.google.com/d/msgid/zaproxy-develop/f36d6226-9120-4fba-bb02-0256a4dbaec6%40googlegroups.com
> <
https://groups.google.com/d/msgid/zaproxy-develop/f36d6226-9120-4fba-bb02-0256a4dbaec6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.