Created
March 2, 2021 03:00
-
-
Save dunithd/81671ddb004d3daec0279c5fe2247f80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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