Page 1 of 1

Webhook new events

PostPosted: Sat Aug 04, 2018 5:06 pm
by minhhieu106
Hi Mike,

I found that on Jiwa version 7.02.00.00 change log . There are new webhook events.
https://docs.jiwa.com.au/display/J7UG/JIWA+7.02.00.00

Where can i download new Plugin REST API Webhooks.xml file with all new webhook events?
https://docs.jiwa.com.au/display/J7UG/Webhooks

Thanks,
Hieu

Re: Webhook new events  Topic is solved

PostPosted: Sat Aug 04, 2018 5:49 pm
by Mike.Sheen
minhhieu106 wrote:Where can i download new Plugin REST API Webhooks.xml file with all new webhook events?
https://docs.jiwa.com.au/display/J7UG/Webhooks

Thanks,
Hieu


Hi Hieu,

As per DEV-6501, which is listed as one of the improvements of 7.2, we state that we merged the REST API Webhooks plugin into the REST API plugin making the REST API Webhooks plugin now redundant.

So, if you upgraded a database to version 7.2 or created a new database or new demo database for 7.2, we automatically update the REST API plugin to include the webhooks functionality.

Mike

Re: Webhook new events

PostPosted: Sat Aug 04, 2018 6:39 pm
by minhhieu106
Hi Mike,

So now the REST API Webhooks plugin has been removed. We only use REST API plugin.

This plugin does not recommend to modify. Where can i add more webhook event such as Staff or a customization code for event which I have added before on REST API Webhooks plugin?

Please advise. Thank you.

Hieu

Re: Webhook new events

PostPosted: Sat Aug 04, 2018 9:34 pm
by Mike.Sheen
minhhieu106 wrote:This plugin does not recommend to modify. Where can i add more webhook event such as Staff or a customization code for event which I have added before on REST API Webhooks plugin?


Hi Hieu,

You should do that by creating a new plugin which implements the IJiwaRESTAPIPlugin interface - that will get invoked when the API service starts. You'll need to add a Plugin reference to the REST API Plugin, and in the Configure method required by the interface add the webhooks you require.

Mike

Re: Webhook new events

PostPosted: Sun Aug 05, 2018 12:53 am
by minhhieu106
Hi Mike,

Do you have any documentation or sample code for creating a new plugin.

I try to find on https://docs.jiwa.com.au/display/J7UG/Jiwa+7+Documentation+Home but still not found.

Thanks,
Hieu