asyncapi: 2.2.0
info:
  title: Service 1
  version: '1.0.0'
  description: |
    Testing 1
# AsyncAPI extension, used to define service id. If not defined, as service id will be used info.title in lower-kebab-case
x-service-id: ax-service-template

channels:
  # commands
  'cmd-channel':
    bindings:
      amqp:
        queue:
          name: example_command
    publish:
      message:
        $ref: '#/components/messages/command-ref'
  # events
  'evt-channel':
    bindings:
      amqp:
        queue:
          name: example_event
    publish:
      message:
        $ref: '#/components/messages/event-ref'
components:
  messages:
    command-ref:
      contentType: application/json
      payload:
        $ref: 'command.json'
    event-ref:
      contentType: application/json
      payload:
        $ref: 'event.json'
