POST Api/Service/PushMessage

发送队列/交换机消息

Request Information

URI Parameters

None.

Body Parameters

消息

SpeedPower.Utility.Models.Service.MIQueues.Service.QueueMessage
NameDescriptionTypeAdditional information
ExchangeName

交换机名称

string

String length: inclusive between 0 and 128

RouteKey

路由Key

string

String length: inclusive between 0 and 128

Message

消息内容

string

Required

Expired

过期时限

time interval

Required

Request Formats

application/json, text/json

Sample:
{
  "ExchangeName": "sample string 1",
  "RouteKey": "sample string 2",
  "Message": "sample string 3",
  "Expired": "00:00:00.1234567"
}

Response Information

Resource Description

发送队列/交换机消息

SpeedPower.Utility.Models.Helper.ResultMessage
NameDescriptionTypeAdditional information
Succeed

操作是否成功

boolean

None.

Message

操作消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeed": true,
  "Message": "sample string 2"
}