packages feed

asyncapi3-1.0.0.0: reference/examples/social-media/public-api/asyncapi.yaml

asyncapi: 3.1.0
info:
  title: Public API
  version: 1.0.0
  description: Public API for others to interact with the system
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: public-api
channels:
  commentLiked:
    address: comment/liked
    messages:
      commentLiked:
        $ref: '../common/messages.yaml#/commentLiked'
    description: >-
      Others are publishing to you, whenever a comment is liked, for you to do
      react to such an event.
operations:
  receiveCommentLiked:
    action: receive
    channel:
      $ref: '#/channels/commentLiked'
    messages:
      - $ref: '#/channels/commentLiked/messages/commentLiked'