Tekelija.SpinExternalListener
RESTful web service that will receive messages from spin user(s) and translate it to message bus
API Reference
Update activation status
POST /api/spin/activation
Body:
{
"ezrcoid": 10,
"ticketId": 12345,
"locationId": 123456,
"locationActivationId": 1234568,
"status": "Active"
}
Valid values for “status” are: “Active”, “Dispatched”, “OnScene”, “UnitRetrieving”, “UnitInGarage”, “Finished”
Example:
curl --request POST '.../api/spin/activation' \
--header 'Content-Type: application/json' \
--data @cap-file
Update location
POST /api/spin/updatelocation
Body:
{
"plkGuid": "123131-123-31123-111",
"plkTicketId": 12345,
"coEzrId": 1123,
"obcinaMID": 1,
"naseljeMID": 2,
"ulicaMID": 2,
"hsMID": 2,
"X": 12313.3323232,
"Y": 132.3323232,
"cestaGlavnaId": 11,
"cestaLokalnaId": 12,
"cestaRegionalnaId": 13
}
Update ticket status
POST /api/spin/ticket
Body:
{
"ezrcoid": 0,
"ticketId": 0,
"locationId": 0,
"status": "string"
}
Valid values for “status” are: “New”, “Open”, “Closed”
Configuration
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 |