Skip to content

Instantly share code, notes, and snippets.

@dunithd
Created March 2, 2021 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dunithd/81671ddb004d3daec0279c5fe2247f80 to your computer and use it in GitHub Desktop.
Save dunithd/81671ddb004d3daec0279c5fe2247f80 to your computer and use it in GitHub Desktop.
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