event-gateway icon indicating copy to clipboard operation
event-gateway copied to clipboard

Event type defined via query string (webhooks integration)

Open shortjared opened this issue 8 years ago • 2 comments

Using the header is okay, but it prevents me from just posting in arbitrary events from typical webhook systems.

I would like to see a GET and POST based endpoints for custom events that can use query params so I could pass in the events from any arbitrary webhook producer. (GitHub, GitLab, etc)

POST {gateway}/?eventType=github for example

shortjared avatar Jul 28 '17 18:07 shortjared

Thanks for that idea. That makes sense for POST. What is the use case behind GET?

mthenw avatar Jul 31 '17 10:07 mthenw

So I wrote my own event gateway all in raw AWS / SNS, just to help me understand the application of the architecture better. In the process, when integrating a couple webhook providers, they would only do GETs which lead me to thinking about the need for GET marshaling.

This isn't as typical these days, but some older webhook style systems only did GETs and not POST.

shortjared avatar Aug 01 '17 21:08 shortjared