Replies: 4 comments
-
/cc @MikeEdgar (swagger-ui), @phillip-kruger (swagger-ui) |
Beta Was this translation helpful? Give feedback.
-
Can you not use config profiles ? |
Beta Was this translation helpful? Give feedback.
-
We do use config profiles where these 2 properties are customized in each. The quarkus.io/guides/openapi-swaggerui documentation confirms that those are build time properties (like all other Swagger related properties). As said, we generate an environment agnostic Docker image (with a uber jar). Would you foresee a way to change the Swagger page look and feel at runtime ? |
Beta Was this translation helpful? Give feedback.
-
Yeah, for this scenario I would recommend looking at Runtime Filters (https://quarkus.io/guides/openapi-swaggerui#runtime-filters) and changing the OpenAPI Schema title to reflect the current runtime. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In our Swagger interface, we must have a way to distinguish our environments : preprod, test and even prod.
So far we did use quarkus.swagger-ui.theme and quarkus.swagger-ui.title.
Those properties are build time ones.
Considering we build now a generic Docker image, is there anyway to achieve the above at runtime ?
Some control over the Swagger API content ?
Beta Was this translation helpful? Give feedback.
All reactions