- MongoDB
- RabbitMQ
- Run
make build
- Edit
dist/config.json
- Just run
dist/universe
There is only 3 endpoints and all of them are POST
- Send event
- Subscribe to event
- Unsubscribe from event
Let's explain all 3 endpoints:
Path: /e/<event_name>
Where event_name is any url-allowed sequence of chars.
Body: put any information about event in request body.
Path: /subscribe/<plugin_name>
Today only log and webhook (in url named as web
) plugins are available.
Body: example for webhook plugin
{
"event_name": "myservice.job.done",
"url": "http://example.com/webhook"
}
Path: /unsubscribe/<plugin_name>
Body: example for webhook plugin
{
"event_name": "myservice.job.done",
"url": "http://example.com/webhook"
}