forked from DataDog/stickerlandia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasync_api.yaml
More file actions
75 lines (74 loc) · 2.13 KB
/
Copy pathasync_api.yaml
File metadata and controls
75 lines (74 loc) · 2.13 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2025-Present Datadog, Inc.
asyncapi: 3.0.0
info:
title: Users Service
version: 1.0.0
defaultContentType: application/json
channels:
users.userRegistered.v1:
address: users.userRegistered.v1
messages:
PublishUserRegisteredEventV1.message:
$ref: '#/components/messages/userRegisteredEvent'
users.stickerClaimed.v1:
address: users.stickerClaimed.v1
messages:
ProcessMessageAsync.message:
$ref: '#/components/messages/stickerClaimedEventV1'
operations:
PublishUserRegisteredEventV1:
action: receive
channel:
$ref: '#/channels/users.userRegistered.v1'
summary: ''
messages:
- $ref: >-
#/channels/users.userRegistered.v1/messages/PublishUserRegisteredEventV1.message
ProcessMessageAsync:
action: send
channel:
$ref: '#/channels/users.stickerClaimed.v1'
summary: ''
messages:
- $ref: >-
#/channels/users.stickerClaimed.v1/messages/ProcessMessageAsync.message
components:
schemas:
userRegisteredEvent:
id: userRegisteredEvent
allOf:
- $ref: '#/components/schemas/domainEvent'
- type: object
additionalProperties: false
properties:
eventName:
type: string
eventVersion:
type: string
accountId:
type: string
domainEvent:
id: domainEvent
type: object
x-abstract: true
additionalProperties: false
stickerClaimedEventV1:
id: stickerClaimedEventV1
type: object
additionalProperties: false
properties:
accountId:
type: string
stickerId:
type: string
messages:
userRegisteredEvent:
payload:
$ref: '#/components/schemas/userRegisteredEvent'
name: userRegisteredEvent
stickerClaimedEventV1:
payload:
$ref: '#/components/schemas/stickerClaimedEventV1'
name: stickerClaimedEventV1