This document defines how to describe AMQP-specific information on AsyncAPI.
Current version is 0.2.0
.
This object MUST NOT contain any properties. Its name is reserved for future use.
This object contains information about the channel representation in AMQP.
This object MUST contain only the properties defined above.
channels:
user/signedup:
bindings:
amqp:
is: routingKey
queue:
name: my-queue-name
durable: true
exclusive: true
autoDelete: false
vhost: /
exchange:
name: myExchange
type: topic
durable: true
autoDelete: false
vhost: /
bindingVersion: 0.1.0
This object contains information about the operation representation in AMQP.
Field Name | Type | Applies To | Description |
---|---|---|---|
expiration |
integer | Publish, Subscribe | TTL (Time-To-Live) for the message. It MUST be greater than or equal to zero. |
userId |
string | Publish, Subscribe | Identifies the user who has sent the message. |
cc |
[string] | Publish, Subscribe | The routing keys the message should be routed to at the time of publishing. |
priority |
integer | Publish, Subscribe | A priority for the message. |
deliveryMode |
integer | Publish, Subscribe | Delivery mode of the message. Its value MUST be either 1 (transient) or 2 (persistent). |
mandatory |
boolean | Publish | Whether the message is mandatory or not. |
bcc |
[string] | Publish | Like cc but consumers will not receive this information. |
replyTo |
string | Publish, Subscribe | Name of the queue where the consumer should send the response. |
timestamp |
boolean | Publish, Subscribe | Whether the message should include a timestamp or not. |
ack |
boolean | Subscribe | Whether the consumer should ack the message or not. |
bindingVersion |
string | Publish, Subscribe | The version of this binding. If omitted, "latest" MUST be assumed. |
This object MUST contain only the properties defined above.
channels:
user/signup:
publish:
bindings:
amqp:
expiration: 100000
userId: guest
cc: ['user.logs']
priority: 10
deliveryMode: 2
mandatory: false
bcc: ['external.audit']
replyTo: user.signedup
timestamp: true
ack: false
bindingVersion: 0.1.0
This object contains information about the message representation in AMQP.
This object MUST contain only the properties defined above.
channels:
user/signup:
publish:
message:
bindings:
amqp:
contentEncoding: gzip
messageType: 'user.signup'
bindingVersion: 0.1.0