-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount-service-ce-binary-3.0.yaml
47 lines (47 loc) · 1.42 KB
/
account-service-ce-binary-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
47
# Account Service in CloudEvents binary format based on this blog post:
# https://developers.redhat.com/articles/2021/06/02/simulating-cloudevents-asyncapi-and-microcks#
asyncapi: 3.0.0
info:
title: Account Service CloudEvents - binary
version: 1.0.0
description: Processes user sign ups and publishes an event afterwards
channels:
user/signedup:
address: user/signedup
messages:
publish.message:
$ref: '#/components/messages/userSignedUp'
operations:
user/signedup.publish:
action: receive
channel:
$ref: '#/channels/user~1signedup'
messages:
- $ref: '#/channels/user~1signedup/messages/publish.message'
components:
messages:
userSignedUp:
name: userSignedUp
title: User signed up message
summary: Emitted when a user signs up
traits:
- $ref: >-
https://raw.githubusercontent.com/meteatamel/asyncapi-basics/main/samples/account-service-cloudevents/cloudevents-v1.0.1-asyncapi-traits.yaml
payload:
$ref: '#/components/schemas/userSignedUpPayload'
schemas:
userSignedUpPayload:
type: object
properties:
data:
$ref: '#/components/schemas/userSignedUpData'
userSignedUpData:
type: object
properties:
displayName:
type: string
description: Name of the user
email:
type: string
format: email
description: Email of the user