Quarkus Manually Set Open Api Url

Quarkus Manually Set Open Api Url

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.