-
Notifications
You must be signed in to change notification settings - Fork 0
/
springwolf.yaml
390 lines (390 loc) · 13.1 KB
/
springwolf.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
asyncapi: 3.0.0
info:
title: catalog-synchronizer
version: 2.0.0-SNAPSHOT
description: Catalog Syncronizer with Apache Kafka and Springboot
contact:
name: csini
url: https://github.com/Csini/catalog-synchronizer
email: csini@gmx.com
license:
name: MIT License
x-generator: springwolf
defaultContentType: application/json
servers:
kafka-server:
host: localhost:9092
protocol: kafka
channels:
hu.exercise.spring.kafka.event.DBEvent:
address: hu.exercise.spring.kafka.event.DBEvent
messages:
java.lang.Object:
$ref: "#/components/messages/java.lang.Object"
hu.exercise.spring.kafka.event.Flushed:
address: hu.exercise.spring.kafka.event.Flushed
messages:
PayloadNotUsed:
$ref: "#/components/messages/PayloadNotUsed"
hu.exercise.spring.kafka.event.ProductErrorEvent:
address: hu.exercise.spring.kafka.event.ProductErrorEvent
messages:
hu.exercise.spring.kafka.topic.ProductErrorEvent:
$ref: "#/components/messages/hu.exercise.spring.kafka.topic.ProductErrorEvent"
hu.exercise.spring.kafka.event.ReadedFromDBEvent:
address: hu.exercise.spring.kafka.event.ReadedFromDBEvent
messages:
io.reactivex.rxjava3.core.Observable:
$ref: "#/components/messages/io.reactivex.rxjava3.core.Observable"
hu.exercise.spring.kafka.event.Run:
address: hu.exercise.spring.kafka.event.Run
messages:
hu.exercise.spring.kafka.input.Run:
$ref: "#/components/messages/hu.exercise.spring.kafka.input.Run"
hu.exercise.spring.kafka.event.ValidProductEvent}:
address: "hu.exercise.spring.kafka.event.ValidProductEvent}"
messages:
io.reactivex.rxjava3.core.Observable:
$ref: "#/components/messages/io.reactivex.rxjava3.core.Observable"
components:
schemas:
HeadersNotDocumented:
title: HeadersNotDocumented
type: object
properties: {}
description: "There can be headers, but they are not explicitly documented."
examples:
- {}
PayloadNotUsed:
title: PayloadNotUsed
type: object
properties: {}
description: No payload specified
examples:
- {}
hu.exercise.spring.kafka.input.MonetaryAmount:
type: object
properties:
amount:
type: number
currency:
type: object
properties:
currencyCode:
type: string
defaultFractionDigits:
type: integer
format: int32
displayName:
type: string
numericCode:
type: integer
format: int32
numericCodeAsString:
type: string
symbol:
type: string
description: Your product's sale price
examples:
- 15.00 USD
required:
- currency
hu.exercise.spring.kafka.input.Product:
type: object
properties:
age_group:
type: string
description: The demographic for which your product is intended
enum:
- NEWBORN
- INFANT
- TODDLER
- KIDS
- ADULT
examples:
- infant
availability:
type: string
description: Your product's availability
enum:
- IN_STOCK
- OUT_OF_STOCK
- PREORDER
- BACKORDER
examples:
- in_stock
brand:
type: string
description: Your product’s brand name
examples:
- Google
condition:
type: string
description: The condition of your product at time of sale
enum:
- NEW
- REFURBISHED
- USED
examples:
- new
created:
type: string
format: date-time
description:
type: string
description: Your product’s description
examples:
- "Made from 100% organic cotton, this classic red men’s polo has a slim\
\ fit and signature logo embroidered on the left chest. Machine wash\
\ cold; imported."
google_product_category:
type: string
description: Google-defined product category for your product
examples:
- "371"
id:
type: string
description: Your product’s unique identifier
examples:
- A2B4
image_link:
type: string
description: The URL of your product’s main image
examples:
- http:// www.example.com/image1.jpg
link:
type: string
description: Your product’s landing page
examples:
- http://www.example.com/asp/sp.asp?cat=12&id=1030
price:
$ref: "#/components/schemas/hu.exercise.spring.kafka.input.MonetaryAmount"
run:
$ref: "#/components/schemas/hu.exercise.spring.kafka.input.Run"
sale_price:
$ref: "#/components/schemas/hu.exercise.spring.kafka.input.MonetaryAmount"
title:
type: string
description: Your product’s name
examples:
- Mens Pique Polo Shirt
updated:
type: string
format: date-time
examples:
- age_group: infant
availability: in_stock
brand: Google
condition: new
created: 2015-07-20T15:49:04-07:00
description: "Made from 100% organic cotton, this classic red men’s polo\
\ has a slim fit and signature logo embroidered on the left chest. Machine\
\ wash cold; imported."
google_product_category: "371"
id: A2B4
image_link: http:// www.example.com/image1.jpg
link: http://www.example.com/asp/sp.asp?cat=12&id=1030
price: 15.00 USD
run:
created: 2015-07-20T15:49:04-07:00
filename: file4.txt
requestid: a3dbaa5a-1375-491e-8c21-403864de8779
updated: 2015-07-20T15:49:04-07:00
sale_price: 15.00 USD
title: Mens Pique Polo Shirt
updated: 2015-07-20T15:49:04-07:00
required:
- availability
- description
- id
- image_link
- link
- price
- title
hu.exercise.spring.kafka.input.Run:
title: Run
type: object
properties:
created:
type: string
format: date-time
filename:
type: string
description: Name of the Input File for this run.
examples:
- file4.txt
requestid:
type: string
description: Run's unique identifier
examples:
- a3dbaa5a-1375-491e-8c21-403864de8779
updated:
type: string
format: date-time
examples:
- created: 2015-07-20T15:49:04-07:00
filename: file4.txt
requestid: a3dbaa5a-1375-491e-8c21-403864de8779
updated: 2015-07-20T15:49:04-07:00
hu.exercise.spring.kafka.topic.ProductErrorEvent:
title: ProductErrorEvent
type: object
properties:
errorMessage:
type: string
id:
type: string
description: Your product’s unique identifier
examples:
- A2B4
product:
$ref: "#/components/schemas/hu.exercise.spring.kafka.input.Product"
requestid:
type: string
description: Run's unique identifier
format: uuid
examples:
- a3dbaa5a-1375-491e-8c21-403864de8779
examples:
- errorMessage: string
id: A2B4
product:
age_group: infant
availability: in_stock
brand: Google
condition: new
created: 2015-07-20T15:49:04-07:00
description: "Made from 100% organic cotton, this classic red men’s polo\
\ has a slim fit and signature logo embroidered on the left chest. Machine\
\ wash cold; imported."
google_product_category: "371"
id: A2B4
image_link: http:// www.example.com/image1.jpg
link: http://www.example.com/asp/sp.asp?cat=12&id=1030
price: 15.00 USD
run:
created: 2015-07-20T15:49:04-07:00
filename: file4.txt
requestid: a3dbaa5a-1375-491e-8c21-403864de8779
updated: 2015-07-20T15:49:04-07:00
sale_price: 15.00 USD
title: Mens Pique Polo Shirt
updated: 2015-07-20T15:49:04-07:00
requestid: a3dbaa5a-1375-491e-8c21-403864de8779
io.reactivex.rxjava3.core.Observable:
title: Observable
type: object
examples:
- {}
java.lang.Object:
title: Iterable
type: object
examples:
- {}
messages:
PayloadNotUsed:
headers:
$ref: "#/components/schemas/HeadersNotDocumented"
payload:
schemaFormat: application/vnd.aai.asyncapi+json;version=3.0.0
schema:
$ref: "#/components/schemas/PayloadNotUsed"
name: PayloadNotUsed
title: PayloadNotUsed
description: No payload specified
bindings: {}
hu.exercise.spring.kafka.input.Run:
headers:
$ref: "#/components/schemas/HeadersNotDocumented"
payload:
schemaFormat: application/vnd.aai.asyncapi+json;version=3.0.0
schema:
$ref: "#/components/schemas/hu.exercise.spring.kafka.input.Run"
name: hu.exercise.spring.kafka.input.Run
title: Run
bindings: {}
hu.exercise.spring.kafka.topic.ProductErrorEvent:
headers:
$ref: "#/components/schemas/HeadersNotDocumented"
payload:
schemaFormat: application/vnd.aai.asyncapi+json;version=3.0.0
schema:
$ref: "#/components/schemas/hu.exercise.spring.kafka.topic.ProductErrorEvent"
name: hu.exercise.spring.kafka.topic.ProductErrorEvent
title: ProductErrorEvent
bindings: {}
io.reactivex.rxjava3.core.Observable:
headers:
$ref: "#/components/schemas/HeadersNotDocumented"
payload:
schemaFormat: application/vnd.aai.asyncapi+json;version=3.0.0
schema:
$ref: "#/components/schemas/io.reactivex.rxjava3.core.Observable"
name: io.reactivex.rxjava3.core.Observable
title: Observable
bindings: {}
java.lang.Object:
headers:
$ref: "#/components/schemas/HeadersNotDocumented"
payload:
schemaFormat: application/vnd.aai.asyncapi+json;version=3.0.0
schema:
$ref: "#/components/schemas/java.lang.Object"
name: java.lang.Object
title: Iterable
bindings: {}
operations:
hu.exercise.spring.kafka.event.DBEvent_send_sendAll:
action: send
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.DBEvent"
title: hu.exercise.spring.kafka.event.DBEvent_send
description: All the DB Actions done by the request.
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.DBEvent/messages/java.lang.Object"
hu.exercise.spring.kafka.event.Flushed_receive_flushedListener:
action: receive
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.Flushed"
title: hu.exercise.spring.kafka.event.Flushed_receive
description: Auto-generated description
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.Flushed/messages/PayloadNotUsed"
hu.exercise.spring.kafka.event.ProductErrorEvent_send_sendEvent:
action: send
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.ProductErrorEvent"
title: hu.exercise.spring.kafka.event.ProductErrorEvent_send
description: All the invalid Products readed from the input TSV.
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.ProductErrorEvent/messages/hu.exercise.spring.kafka.topic.ProductErrorEvent"
hu.exercise.spring.kafka.event.ReadedFromDBEvent_send_sendMessages:
action: send
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.ReadedFromDBEvent"
title: hu.exercise.spring.kafka.event.ReadedFromDBEvent_send
description: All the Product readed from DB.
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.ReadedFromDBEvent/messages/io.reactivex.rxjava3.core.Observable"
hu.exercise.spring.kafka.event.Run_send_sendRunMessage:
action: send
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.Run"
title: hu.exercise.spring.kafka.event.Run_send
description: All the Runs started from catalog-syncronizer.
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.Run/messages/hu.exercise.spring.kafka.input.Run"
hu.exercise.spring.kafka.event.ValidProductEvent}_send_sendEvent:
action: send
channel:
$ref: "#/channels/hu.exercise.spring.kafka.event.ValidProductEvent}"
title: "hu.exercise.spring.kafka.event.ValidProductEvent}_send"
description: All the valid Products readed by the request from the input TSV.
bindings: {}
messages:
- $ref: "#/channels/hu.exercise.spring.kafka.event.ValidProductEvent}/messages/io.reactivex.rxjava3.core.Observable"