-
Notifications
You must be signed in to change notification settings - Fork 0
/
account-service-2.6.yaml
43 lines (39 loc) · 1.09 KB
/
account-service-2.6.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Account Service application based on this blog post:
# Understanding AsyncAPIs with a Practical Example
# https://medium.com/event-driven-utopia/understanding-asyncapis-with-a-practical-example-ee2b4be221d8
asyncapi: '2.6.0'
info:
title: Account Service
version: 1.0.0
description: Processes user sign ups and publishes an event afterwards
servers:
test:
url: mqtt://test.mosquitto.org
protocol: mqtt
description: Test MQTT broker
channels:
user/signedup:
subscribe:
operationId: publishUserSignedUp
message:
$ref: '#/components/messages/userSignedUp'
components:
messages:
userSignedUp:
name: userSignedUp
title: User signed up message
summary: Emitted when a user signs up
contentType: application/json
payload:
$ref: '#/components/schemas/userSignedUpPayload'
schemas:
userSignedUpPayload:
type: object
properties:
displayName:
type: string
description: Name of the user
email:
type: string
format: email
description: Email of the user