Quarkus: Openapi not working when quarkus.swagger-ui.path is "/"

Created on 4 Sep 2019  路  3Comments  路  Source: quarkusio/quarkus

Describe the bug
Hi, not sure if is a Quarkus or a MicroProfile issue, but when I have the config bellow in the application.properties, the OpenApi endpoint doesn't work. I've attached a PrintScreen and there isn't error in the logs

application.properties:
quarkus.swagger-ui.path=/

Expected behaviour
The OpenApi endpoint should work independently of quarkus.swagger-ui.path config

Screenshot from 2019-09-04 15-05-11

kinbug

Most helpful comment

I don't think we should allow a path of / for swagger UI. Swagger takes complete control of quarkus.swagger-ui.path so if it is set of / then nothing else can be served.

All 3 comments

I don't think we should allow a path of / for swagger UI. Swagger takes complete control of quarkus.swagger-ui.path so if it is set of / then nothing else can be served.

Ok, closing the issue!

I don't think we should allow a path of / for swagger UI. Swagger takes complete control of quarkus.swagger-ui.path so if it is set of / then nothing else can be served.

Good candidate of https://github.com/quarkusio/quarkus/issues/2489.

Was this page helpful?
0 / 5 - 0 ratings