Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexandramartinez/66e29c3d985b14ce9b54fe114f1134fc to your computer and use it in GitHub Desktop.
Save alexandramartinez/66e29c3d985b14ce9b54fe114f1134fc to your computer and use it in GitHub Desktop.
asyncapi: '2.6.0'
info:
title: Account Service
version: '1.0.0'
description: Publishes the UserSignedUp event when a new user account is created.
contact:
name: Alex Martinez
email: [email protected]
url: alexmartinez.ca
license:
name: test
url: test
defaultContentType: application/json
tags:
- name: solace
description: makes use of Solace PubSub+
servers:
Solace:
protocol: solace
bindings:
solace:
msgVpn: default
url: localhost:55554
channels:
user-signup:
subscribe:
description: Publishes the UserSignedUp event
operationId: emitUserSignUpEvent
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