CloudEvents schema: Variables in WebHook url
Since in CloudEvents 0.1 we deliver single events, it would be useful to be able to pass event properties into the webhook url. This would allow easy routing on the subscriber side. For example a spec version variable and an eventType variable would allow for an webhook url like this:
which would result in something like
We could then easily build an api that supports all kind of versions and eventTypes without a long list of single eventType subscribtions.
Mario Meyrelles commented
This is also very useful when you want to integrate with Azure SignalR Service. This can be interesting in CQRS scenarios, where I it would be interesting to notify users asynchronously when something happens.