I'd like to trigger custom events when API products are published/edited. Are there webhooks or other integration mechanisms I can leverage?

Not applicable
 
2 4 289
4 REPLIES 4

Solution 1:

you could poll the audit API,

Solution 2:

Proxy the Management API itself.

In that proxy - you could trigger events based on the flow [like POST /apiproducts, or PUT /apiproducts/{productid} etc..]

Thanks! Polling the audit API seems like the best bet so far.

Solution 2 gets me away from polling (which is nice) - but am I right in thinking this only works if you manage your products over this custom proxy, rather than w/ the Management UI?

ah right, Solution is applicable only when you go thro the proxy.

Unfortunately, if you are using cloud - this may not be applicable, since you can't alter the UI to go thro your proxy. Possible only in the private cloud

Ok makes sense. For on-prem this could work out quite well. Good idea, thanks.