Created
August 22, 2024 20:30
-
-
Save alexandramartinez/5b86513012fc5af194c429c8c186b0b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.6.0' | |
info: | |
title: Email Service | |
version: '1.0.0' | |
description: Subscribed to receive the UserSignedUp event to send the new user a welcome email. | |
servers: | |
AnypointMQ: | |
url: https://your-mq-url | |
protocol: anypointmq | |
channels: | |
user-signup: | |
publish: | |
operationId: onUserSignUp | |
message: | |
$ref: "#/components/messages/UserSignedUp" | |
components: | |
messages: | |
UserSignedUp: | |
payload: | |
type: object | |
properties: | |
firstName: | |
type: string | |
examples: | |
- Alex | |
lastName: | |
type: string | |
examples: | |
- Martinez | |
email: | |
type: string | |
examples: | |
- [email protected] | |
createdAt: | |
type: string | |
examples: | |
- 2024-01-01T15:00:00Z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment