RabbitMQ官方的HTTP API文档地址
https://pulse.mozilla.org/api/
HTTP API 发送信息
URL
http://username:passward@IPADDRESS:PORT/api/exchanges/%2f//publish
示例
http://admin:admin@192.168.1.41:15672/api/exchanges/%2f//publish
请求方式
POST
参数
{
"properties":{},
"routing_key":"test.msg.queue",
"payload":"滴滴滴滴",
"payload_encoding":"string"
}
复杂对象可以直接传json
{
"properties":{},
"routing_key":"test.msg.queue",
"payload":"{\"name\":\"zhangsan\",\"age\":18}",
"payload_encoding":"string"
}
返回
{
"routed": true
}