Queues

Create rest endpoint and push message to RabbitMQ using provided data

Push new message to RabbitMq via rest endpoint POST /api/analytics

{
  "path": "/api/analytics",
  "methods": [
    "POST"
  ],
  "query": "analytics-push",
  "authorized": false
}
{
  "type": "rabbit-publish",
  "id": "analytics-push",
  "connection": "sample-rabbit-connection",
  "queue": "analytics",
  "exchange": "",
  "body": {
    "productId": ":productId",
    "campaign": ":campaign",
    "campaignProduct": ":productId - :campaign"
  },
  "headers": {
    "testHeaderId": 1234,
    "productId": ":productId"
  },
  "params": [
    {
      "name": "productId",
      "required": true
    },
    {
      "name": "campaign",
      "required": true
    }
  ]
}
{
  "productId": "1234",
  "campaign": "winter"
}
Last modified April 16, 2024: content fix (a2d9b96)