Webhook consists of one invocation callback and a numerous of listeners. Idea is to have one webhook per external system.
Invocation contains of:
- URI - endpoint to call when event occurs
- Authentication header - (optional) Authentication header to supply while invoking URI
Webhook can have multiple listeners, where each consists of:
- document - type of a document to watch
- events - events to watch (created, updated and deleted)