-
Notifications
You must be signed in to change notification settings - Fork 0
/
account-service-3.0.yaml
47 lines (46 loc) · 1.28 KB
/
account-service-3.0.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
44
45
46
# 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: 3.0.0
info:
title: Account Service
version: 1.0.0
description: Processes user sign ups and publishes an event afterwards
servers:
test:
host: test.mosquitto.org
protocol: mqtt
description: Test MQTT broker
channels:
user/signedup:
address: user/signedup
messages:
publishUserSignedUp.message:
$ref: '#/components/messages/userSignedUp'
operations:
publishUserSignedUp:
action: send
channel:
$ref: '#/channels/user~1signedup'
messages:
- $ref: '#/channels/user~1signedup/messages/publishUserSignedUp.message'
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