Skip to content

Commit 9df8aa2

Browse files
authored
Merge pull request #61 from vinscom/develop
dev-to-master
2 parents 7ea8374 + ec3edad commit 9df8aa2

22 files changed

+477
-113
lines changed

config-layers/test/in/erail/route/OpenAPI3RouteBuilder.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
securityEnable=false
33
services+=\
44
/in/erail/service/BroadcastService,\
5-
/in/erail/service/BinaryBodyService
5+
/in/erail/service/BinaryBodyService,\
6+
/in/erail/service/ProcessorCheckService
7+
68

config-layers/test/in/erail/route/openapi3.json

Lines changed: 69 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,26 @@
1111
"summary": "Send message to all subscriber of topicName",
1212
"description": "Send message to all subscriber of topicName",
1313
"operationId": "API_V1_BROADCAST_SERVICE",
14-
"parameters": [{
15-
"name": "topicName",
16-
"in": "path",
17-
"required": true,
18-
"schema": {
19-
"type": "string"
14+
"parameters": [
15+
{
16+
"name": "topicName",
17+
"in": "path",
18+
"required": true,
19+
"schema": {
20+
"type": "string"
21+
}
2022
}
21-
}],
23+
],
24+
"requestBody": {
25+
"content": {
26+
"application/json": {
27+
"schema": {
28+
"$ref": "#/components/schemas/broadcastMessage"
29+
}
30+
}
31+
},
32+
"required": true
33+
},
2234
"responses": {
2335
"200": {
2436
"description": "Success Response",
@@ -30,41 +42,45 @@
3042
}
3143
}
3244
}
33-
},
34-
"requestBody": {
35-
"content": {
36-
"application/json": {
37-
"schema": {
38-
"$ref": "#/components/schemas/broadcastMessage"
39-
}
40-
}
41-
},
42-
"required": true
4345
}
4446
},
45-
"parameters": [{
46-
"name": "topicName",
47-
"in": "path",
48-
"description": "Name of topic on which to broadcast message",
49-
"required": true,
50-
"schema": {
51-
"type": "string"
47+
"parameters": [
48+
{
49+
"name": "topicName",
50+
"in": "path",
51+
"description": "Name of topic on which to broadcast message",
52+
"required": true,
53+
"schema": {
54+
"type": "string"
55+
}
5256
}
53-
}]
57+
]
5458
},
5559
"/broadcastv2/{topicName}": {
5660
"post": {
5761
"summary": "Send message to all subscriber of topicName",
5862
"description": "Send message to all subscriber of topicName",
5963
"operationId": "API_V1_BROADCAST_V2_SERVICE",
60-
"parameters": [{
61-
"name": "topicName",
62-
"in": "path",
63-
"required": true,
64-
"schema": {
65-
"type": "string"
64+
"parameters": [
65+
{
66+
"name": "topicName",
67+
"in": "path",
68+
"required": true,
69+
"schema": {
70+
"type": "string"
71+
}
6672
}
67-
}],
73+
],
74+
"requestBody": {
75+
"content": {
76+
"application/json": {
77+
"schema": {
78+
"$ref": "#/components/schemas/broadcastMessage"
79+
}
80+
}
81+
},
82+
"required": true
83+
},
6884
"responses": {
6985
"200": {
7086
"description": "Success Response",
@@ -76,27 +92,30 @@
7692
}
7793
}
7894
}
79-
},
80-
"requestBody": {
81-
"content": {
82-
"application/json": {
83-
"schema": {
84-
"$ref": "#/components/schemas/broadcastMessage"
85-
}
86-
}
87-
},
88-
"required": true
8995
}
9096
},
91-
"parameters": [{
92-
"name": "topicName",
93-
"in": "path",
94-
"description": "Name of topic on which to broadcast message",
95-
"required": true,
96-
"schema": {
97-
"type": "string"
97+
"parameters": [
98+
{
99+
"name": "topicName",
100+
"in": "path",
101+
"description": "Name of topic on which to broadcast message",
102+
"required": true,
103+
"schema": {
104+
"type": "string"
105+
}
106+
}
107+
]
108+
},
109+
"/processcheck": {
110+
"get": {
111+
"summary": "Check Processor",
112+
"operationId": "API_V1_PROCESSOR_CHECK",
113+
"responses": {
114+
"200": {
115+
"description": "Success"
116+
}
98117
}
99-
}]
118+
}
100119
}
101120
},
102121
"components": {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#/in/erail/service/BaseService
2+
3+
vertx=/io/vertx/core/Vertx
4+
enable=true
5+
log=true
6+
preProcessProcessors=/in/erail/service/processor/LoadSubjectProcessor1
7+
postProcessProcessors=/in/erail/service/processor/AddHeaderProcessor1
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#/in/erail/service/BinaryBodyService
22
$class=in.erail.service.BinaryBodyService
3+
$basedOn=/in/erail/service/BaseService
34

45
operationId=API_V1_BROADCAST_V2_SERVICE
56
serviceUniqueId=API_V1_BROADCAST_V2_SERVICE
6-
vertx=/io/vertx/core/Vertx
7-
enable=true
8-
log=true
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#/in/erail/service/BroadcastService
22
$class=in.erail.service.BroadcastService
3+
$basedOn=/in/erail/service/BaseService
34

45
operationId=API_V1_BROADCAST_SERVICE
56
serviceUniqueId=API_V1_BROADCAST_SERVICE
6-
vertx=/io/vertx/core/Vertx
7-
enable=true
8-
log=true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#/in/erail/service/ProcessorCheckService
2+
$class=in.erail.service.ProcessorCheckService
3+
$basedOn=/in/erail/service/BaseService
4+
5+
operationId=API_V1_PROCESSOR_CHECK
6+
serviceUniqueId=API_V1_PROCESSOR_CHECK
7+
preProcessProcessors+=/in/erail/service/processor/LoadSubjectProcessor2
8+
postProcessProcessors+=/in/erail/service/processor/AddHeaderProcessor2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/in/erail/service/processor/AddHeaderProcessor1
2+
$class=in.erail.service.processor.AddHeaderProcessor
3+
message=Header1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/in/erail/service/processor/AddHeaderProcessor2
2+
$class=in.erail.service.processor.AddHeaderProcessor
3+
message=Header2
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/in/erail/service/processor/LoadSubjectProcessor1
2+
$class=in.erail.service.processor.LoadSubjectProcessor
3+
message=Subject1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/in/erail/service/processor/LoadSubjectProcessor2
2+
$class=in.erail.service.processor.LoadSubjectProcessor
3+
message=Subject2

0 commit comments

Comments
 (0)