asyncapi3-1.0.0.0: test/golden/examples/reference-examples-social-media-backend-asyncapi.yaml.json
{"asyncapi":"3.1.0","info":{"title":"Website Backend","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":"websocketServer"}}},"websiteWebSocketServer":{"$ref":"../common/servers.yaml#/websiteWebSocketServer"}},"channels":{"commentsCountChange":{"address":"comment/{commentId}/changed","messages":{"commentChanged":{"$ref":"../common/messages.yaml#/commentChanged"}},"description":"When an event from the broker arrives telling us to update the comment likes count on the frontend.","servers":[{"$ref":"#/servers/mosquitto"}],"parameters":{"commentId":{"$ref":"../common/parameters.yaml#/commentId"}}},"newLikeComment":{"address":"like/comment","messages":{"likeComment":{"$ref":"../common/messages.yaml#/likeComment"}},"description":"When a comment like is received from the frontend.","servers":[{"$ref":"#/servers/websiteWebSocketServer"}]},"notifyAllCommentLiked":{"address":"comment/liked","messages":{"commentLiked":{"$ref":"../common/messages.yaml#/commentLiked"}},"description":"Notify all the services that a comment has been liked.","servers":[{"$ref":"#/servers/mosquitto"}]},"updateCommentsCount":{"address":"update/comment/likes","messages":{"updateCommentLikes":{"$ref":"../common/messages.yaml#/updateCommentLikes"}},"description":"Update comment likes count in the frontend.","servers":[{"$ref":"#/servers/websiteWebSocketServer"}]}},"operations":{"receiveCommentChange":{"action":"receive","channel":{"$ref":"#/channels/commentsCountChange"},"messages":[{"$ref":"#/channels/commentsCountChange/messages/commentChanged"}]},"receiveCommentLike":{"action":"receive","channel":{"$ref":"#/channels/newLikeComment"},"messages":[{"$ref":"#/channels/newLikeComment/messages/likeComment"}]},"sendCommentLikeUpdate":{"action":"send","channel":{"$ref":"#/channels/updateCommentsCount"},"messages":[{"$ref":"#/channels/updateCommentsCount/messages/updateCommentLikes"}]},"sendCommentLiked":{"action":"send","channel":{"$ref":"#/channels/notifyAllCommentLiked"},"messages":[{"$ref":"#/channels/notifyAllCommentLiked/messages/commentLiked"}]}}}