-
Notifications
You must be signed in to change notification settings - Fork 0
/
catalog-info.yaml
133 lines (133 loc) · 3.86 KB
/
catalog-info.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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: pathfinder-rest-api
title: Pathfinder REST API
description: |
Receives events from Pathfinder via RestApi, converts them to CloudEvents
and sends them to a `cloudevents` topic in Kafka.
annotations:
backstage.io/techdocs-ref: dir:.
spec:
type: openapi
lifecycle: experimental
owner: it-reaktion
definition: |
openapi: 3.1.0
info:
title: Pathfinder RestApi
version: v1alpha1
description: |
Receives events from Pathfinder via RestApi, converts them to CloudEvents
and sends them to a `cloudevents` topic in Kafka.
paths:
/webhook:
post:
summary: Receive a POST request and generate a CloudEvent.
requestBody:
description:
content:
text/plain:
schema:
type: string
example: 'event=OnAir&channel=Klangbecken'
required: true
responses:
'200':
description: Event received
content:
application/json:
schema:
type: object
---
apiVersion: backstage.io/v1alpha1
kind: API
metadata:
name: pathfinder-cloudevents-api
title: Pathfinder CloudEvents API
description: |
Receives events from Pathfinder via RestApi, converts them to CloudEvents
and sends them to a `cloudevents` topic in Kafka.
annotations:
backstage.io/techdocs-ref: dir:.
spec:
type: asyncapi
lifecycle: experimental
owner: it-reaktion
definition: |
asyncapi: '2.6.0'
id: 'https://github.com/radiorabe/pathfinder-cloudevents-service'
info:
title: Pathfinder CloudEvents Service
version: v1alpha1
description: |
Receives events from Pathfinder via RestApi, converts them to CloudEvents
and sends them to a `cloudevents` topic in Kafka.
servers:
production:
url: kafka.service.int.rabe.ch
protocol: kafka
description: Production Kafka Ensemble
security:
- ssl: []
channels:
cloudevents:
subscribe:
message:
$ref: '#/components/messages/CloudEvent'
components:
messages:
CloudEvent:
description: |
Generic CloudEvent containing an OnAir or OffAir event
payload:
type: object
properties:
specversion:
type: string
enum: ['1.0']
type:
type: string
example: 'ch.rabe.api.events.pathfinder.v0alpha1.OnAir.Klangbecken'
source:
type: string
format: uri
example: 'https://github.com/radiorabe/pathfinder-cloudevents-service'
id:
type: string
time:
type: string
format: date-time
contenttype:
type: string
example: 'text/plain'
securitySchemes:
ssl:
type: X509
---
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: pathfinder-cloudevents-service
title: Pathfinder CloudEvents Service
description: |
Receives events from Pathfinder via RestApi, converts them to CloudEvents
and sends them to a `cloudevents` topic in Kafka.
annotations:
backstage.io/techdocs-ref: dir:.
github.com/project-slug: radiorabe/pathfinder-cloudevents-service
links:
- url: https://docs.telosalliance.com/pathfinder-core-pro/
title: Pathfinder Documentation
spec:
type: service
lifecycle: experimental
owner: it-reaktion
dependsOn:
- component:default/python-minimal
- component:default/s2i-python-minimal
- component:default/kafka
providesApis:
- pathfinder-cloudevents-api
- pathfinder-rest-api