-
Notifications
You must be signed in to change notification settings - Fork 0
/
acme_simple_range_life_enhancer-api.yaml
83 lines (77 loc) · 2.24 KB
/
acme_simple_range_life_enhancer-api.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
asyncapi: '2.5.0'
id: 'urn:acme.simple_range.life_enhancer'
info:
title: ACME Life Enhancer
version: '1.0.0'
description: |
ACMEs Life enhancer records and predicts how ones life will change due to many events that are experienced - see http://acme.org/life_range for more info
license:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0'
servers:
test:
url: test.mykafkacluster.org:8092
protocol: kafka-secure
description: Test broker
channels:
_public.user_signed_up:
bindings:
kafka:
envs:
- staging
- prod
partitions: 3
replicas: 1
configs:
cleanup.policy: delete
retention.ms: 999000
publish:
summary: Inform about signup
operationId: onSignup
message:
bindings:
kafka:
schemaIdLocation: "payload"
schemaFormat: "application/vnd.apache.avro+json;version=1.9.0"
contentType: "application/octet-stream"
payload:
$ref: "/schema/acme.simple_range.life_enhancer._public.user_signed_up.avsc"
_private.user_checkout:
bindings:
kafka:
envs:
- staging
- prod
partitions: 3
replicas: 1
configs:
cleanup.policy: delete
retention.ms: 999000
publish:
summary: User purchase confirmation
operationId: onUserCheckout
message:
bindings:
kafka:
schemaIdLocation: "payload"
schemaFormat: "application/json;version=1.9.0"
contentType: "application/json"
payload:
$ref: "/schema/acme.simple_range.life_enhancer._private.user_checkout.yml"
acme.simple_range.transport._public.tube:
subscribe:
operationId: onUserArriving
summary: Humans arriving in the borough
bindings:
kafka:
groupId: 'acme.simple_range.life_enhancer.new_users'
message:
schemaFormat: "application/vnd.apache.avro+json;version=1.9.0"
contentType: "application/octet-stream"
bindings:
kafka:
schemaIdLocation: "header"
key:
type: string
payload:
$ref: "acme.simple_range.transport._public.tube.passenger.avsc"