So I know I can change the open api path with quarkus.smallrye-openapi.path=/openapi
However I am using an api gateway and at the beginning of my services I identify them with something like
How do I change the url for open api so I don't have to manually put /notification/openapi in swagger each time I open the url
1 Answer
You can use quarkus.swagger-ui.urls to set one or more urls. See
Example:
quarkus.swagger-ui.urls.default=
This will change the url as you want it.
You can also add both (one that goes through the gateway and one direct for example):
quarkus.swagger-ui.urls.default=
quarkus.swagger-ui.urls.direct=/q/openapi
quarkus.swagger-ui.urls-primary-name=default
This will give you a dropdown with the gateway one selected by default.
See for a example.