-
Notifications
You must be signed in to change notification settings - Fork 3
/
trip-events-oport-api.json
115 lines (114 loc) · 4.28 KB
/
trip-events-oport-api.json
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"asyncapi": "2.5.0",
"info": {
"title": "Trip Status Streaming API",
"version": "1.0.0",
"description": "This API exposes all events related to `Trip` entity"
},
"servers": {
"development": {
"url": "https://company-xyz.com/platform/dev/confluent-cloud",
"description": "Confluent Cloud DEV bootstrap server",
"protocol": "kafka",
"protocolVersion": "latest",
"bindings": {
"kafka": {
"schemaRegistryUrl": "https://company-xyz.com/platform/dev/confluent-schema-registry",
"schemaRegistryVendor": "confluent"
}
}
},
"production": {
"url": "https://company-xyz.com/platform/prod/confluent-cloud",
"description": "Confluent Cloud PRODUCTION bootstrap server",
"protocol": "kafka",
"protocolVersion": "latest",
"bindings": {
"kafka": {
"schemaRegistryUrl": "https://company-xyz.com/platform/prod/confluent-schema-registry",
"schemaRegistryVendor": "confluent"
}
}
}
},
"defaultContentType": "avro/binary",
"channels": {
"transportmng.tripexecution.devents.status": {
"description": "This topic contains all the *domain events* related to `Trip` entity",
"subscribe": {
"operationId": "readTripStatusEvents",
"security": [
{
"apiKey": []
}
],
"message": {
"messageId": "tripStatusEvent",
"contentType": "avro/binary",
"schemaFormat": "application/vnd.apache.avro",
"payload": {
"$ref": "https://raw.githubusercontent.com/opendatamesh-initiative/odm-specification-dpdescriptor/main/examples/tripexecution/ports/trip-events-oport-status-change-schema.avsc"
},
"bindings": {
"kafka": {
"schemaIdPayloadEncoding": "confluent",
"schemaLookupStrategy": "TopicIdStrategy",
"key": {
"type": "string",
"enum": ["id"]
}
}
}
}
},
"bindings": {
"kafka": {
"partitions": 20,
"replicas": 3
}
}
}, "transportmng.tripexecution.devents.position": {
"description": "This topic contains all the *domain events* related position tracking of `Trip` entity",
"subscribe": {
"operationId": "readTripPositionEvents",
"security": [
{
"apiKey": []
}
],
"message": {
"messageId": "tripPositionEvent",
"contentType": "avro/binary",
"schemaFormat": "application/vnd.apache.avro",
"payload": {
"$ref": "https://raw.githubusercontent.com/opendatamesh-initiative/odm-specification-dpdescriptor/main/examples/tripexecution/ports/trip-events-oport-position-notification-schema.avsc"
},
"bindings": {
"kafka": {
"schemaIdPayloadEncoding": "confluent",
"schemaLookupStrategy": "TopicIdStrategy",
"key": {
"type": "string",
"enum": ["id"]
}
}
}
}
},
"bindings": {
"kafka": {
"partitions": 20,
"replicas": 3
}
}
}
},
"components": {
"securitySchemes": {
"apiKey": {
"type": "apiKey",
"in": "user"
}
}
}
}