-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasyncapi.yaml
More file actions
36 lines (36 loc) · 845 Bytes
/
Copy pathasyncapi.yaml
File metadata and controls
36 lines (36 loc) · 845 Bytes
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
asyncapi: 3.1.0
info:
title: Example Event API
version: 0.1.0
description: Starter contract for event-driven integration.
channels:
itemCreated:
address: items.created
messages:
itemCreated:
$ref: '#/components/messages/ItemCreated'
operations:
publishItemCreated:
action: send
channel:
$ref: '#/channels/itemCreated'
components:
messages:
ItemCreated:
name: ItemCreated
title: Item created
contentType: application/json
payload:
type: object
additionalProperties: false
required: [eventId, occurredAt, itemId]
properties:
eventId:
type: string
format: uuid
occurredAt:
type: string
format: date-time
itemId:
type: string
format: uuid