Tekelija.Allegro.WebhookListener
RESTful web service that will receive datapool pushed data (CAP or json formatted) and publish according messages to rabbitmq
API Reference
Create ticket from CAP data
POST /cap
Example:
curl --request POST '.../cap' \
--header 'Content-Type: application/xml' \
--data @cap-file
Create ticket from json datapool data
POST /ticket
Example:
curl --request POST '.../ticket' \
--header 'Content-Type: application/json' \
--data @json-file
Configuration
Module config
{
"WebhookListener": {
"Secret": null
}
}
Parameters:
Name | Type | Default | Description |
---|---|---|---|
Secret | string | null | HMAC secret (if any) |
Message bus config
{
"MessageBus": {
"Url": "rabbitmq://localhost",
"Username": null,
"Password": null,
"Endpoint": "<endpoint-name>",
"MessageRepositoryUri": null
}
}
Parameters:
Name | Type | Default | Description |
---|---|---|---|
Url | string | null | RabbitMQ url (rabbitmq://…) |
Username | string | null | RabbitMQ username |
Password | string | null | RabbitMQ user password |
Endpoint | string | null | RabbitMQ endpoint |
MessageRepositoryUri | string | host name | Origin of the call, may have some sense for global call data collection setup |