metagov / gateway

An API gateway for online communities
https://docs.metagov.org/
MIT License
50 stars 16 forks source link

Add webhook middleware mechanism #99

Open gigxz opened 3 years ago

gigxz commented 3 years ago

Currently plugin authors are given a broad handle in processing incoming webhook requests. This requires the plugin author to understand a bunch of stuff about how metagov-core works, which might not be ideal. This issue suggests chunking up webhook handling into smaller pieces, and give the control back to the core. The core can then delegate each piece back to whichever handlers are defined by the plugin author.

Create some kind of middleware chain so plugin authors can hook in handlers for...

*Look at how this works when authoring a Zapier app..

shaunagm commented 2 years ago

Note: this would make the plugin developer experience better, which is not currently a high priority, so let's label this medium.