Skip to content

Instantly share code, notes, and snippets.

@alexandramartinez
Created August 22, 2024 20:30
Show Gist options
  • Save alexandramartinez/5b86513012fc5af194c429c8c186b0b1 to your computer and use it in GitHub Desktop.
Save alexandramartinez/5b86513012fc5af194c429c8c186b0b1 to your computer and use it in GitHub Desktop.
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