packages feed

asyncapi3-1.0.0.0: reference/examples/social-media/notification-service/asyncapi.yaml

asyncapi: 3.1.0
info:
  title: Notifications Service
  version: 1.0.0
servers:
  mosquitto:
    host: test.mosquitto.org
    protocol: mqtt
    tags:
      - name: 'env:production'
        description: This environment is meant for production use case
      - name: 'kind:remote'
        description: This server is a remote server. Not exposed by the application
      - name: 'visibility:public'
        description: This resource is public and available to everyone
    bindings:
      mqtt:
        clientId: notification-service
channels:
  commentLiked:
    address: comment/liked
    messages:
      commentLiked:
        $ref: '../common/messages.yaml#/commentLiked'
    description: >-
      When a "comment has been liked" message is received, it sends an SMS or
      push notification to the author.
operations:
  receiveCommentLiked:
    action: receive
    channel:
      $ref: '#/channels/commentLiked'
    messages:
      - $ref: '#/channels/commentLiked/messages/commentLiked'