Skip to content

Commit d31b0dd

Browse files
authored
fixes #260 update the openapi-inject.yml to have the placeholder serviceId (#261)
1 parent fa037bc commit d31b0dd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

openapi-meta/src/main/resources/config/openapi-inject.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
paths:
3-
/adm/health/${server.serviceId}:
3+
/adm/health/${server.serviceId:com.networknt.placeholder-1.0.0}:
44
get:
55
description: pass through to the liveness endpoint that belongs to backend api
66
security:
@@ -9,7 +9,7 @@ paths:
99
# for control pane to access all businesses' admin endpoints
1010
- admin
1111
# for each business to access their own admin endpoints
12-
- ${server.serviceId}/admin
12+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
1313
/adm/server/info:
1414
get:
1515
description: get the proxy server info and corresponding backend service info
@@ -19,7 +19,7 @@ paths:
1919
# for control pane to access all businesses' admin endpoints
2020
- admin
2121
# for each business to access their own admin endpoints
22-
- ${server.serviceId}/admin
22+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
2323

2424
/adm/chaosmonkey:
2525
get:
@@ -30,7 +30,7 @@ paths:
3030
# for control pane to access all businesses' admin endpoints
3131
- admin
3232
# for each business to access their own admin endpoints
33-
- ${server.serviceId}/admin
33+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
3434
/adm/chaosmonkey/{assault}:
3535
post:
3636
description: to update chaosmonkey settings
@@ -48,7 +48,7 @@ paths:
4848
# for control pane to access all businesses' admin endpoints
4949
- admin
5050
# for each business to access their own admin endpoints
51-
- ${server.serviceId}/admin
51+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
5252

5353
/adm/logger:
5454
get:
@@ -59,7 +59,7 @@ paths:
5959
# for control pane to access all businesses' admin endpoints
6060
- admin
6161
# for each business to access their own admin endpoints
62-
- ${server.serviceId}/admin
62+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
6363
post:
6464
description: to modify the logging settings
6565
requestBody:
@@ -82,15 +82,15 @@ paths:
8282
# for control pane to access all businesses' admin endpoints
8383
- admin
8484
# for each business to access their own admin endpoints
85-
- ${server.serviceId}/admin
85+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
8686

8787
/adm/logger/content:
8888
get:
8989
description: to get the content of the logs from this service.
9090
security:
9191
- admin-scope:
9292
- admin
93-
- ${server.serviceId}/admin
93+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
9494

9595
/adm/modules:
9696
get:
@@ -101,7 +101,7 @@ paths:
101101
# for control pane to access all businesses' admin endpoints
102102
- admin
103103
# for each business to access their own admin endpoints
104-
- ${server.serviceId}/admin
104+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
105105
post:
106106
description: to trigger the config reload for all modules or specified modules selected on control pane
107107
requestBody:
@@ -119,7 +119,7 @@ paths:
119119
# for control pane to access all businesses' admin endpoints
120120
- admin
121121
# for each business to access their own admin endpoints
122-
- ${server.serviceId}/admin
122+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
123123
/adm/shutdown:
124124
delete:
125125
summary: "Shutdown the service instance to force a restart."
@@ -131,7 +131,7 @@ paths:
131131
# for control pane to access all businesses' admin endpoints
132132
- admin
133133
# for each business to access their own admin endpoints
134-
- ${server.serviceId}/admin
134+
- ${server.serviceId:com.networknt.placeholder-1.0.0}/admin
135135

136136
components:
137137
securitySchemes:

0 commit comments

Comments
 (0)