Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
asyncapi: 2.0.0
info:
title: Email Service
version: '1.0.0'
description: |
This service is responsible for sending out emails upon certain events
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
production:
url: mqtt://test.mosquitto.org
protocol: mqtt
description: Test MQTT broker
channels:
user/signedup:
publish:
operationId: onUserSignUp
message:
$ref : '#/components/messages/UserSignedUp'
components:
messages:
UserSignedUp:
name: userSignedUp
title: User signed up event
summary: Inform about a new user registration in the system
contentType: application/json
payload:
$ref: '#/components/schemas/userSignedUpPayload'
schemas:
userSignedUpPayload:
type: object
properties:
firstName:
type: string
description: "foo"
lastName:
type: string
description: "bar"
email:
type: string
format: email
description: "baz"
createdAt:
type: string
format: date-time
description: "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment