Details
-
Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
20.0.0.Final
-
None
Description
In the Wildfly 20, if I deploy two applications in the same server just one registry an openapi endpoint. Look at this code:
It makes sense as the endpoint is registered to http://
{host}:{port}/openpi, but I think it is better to registry it considering the context root. With this, we can registry multiples openapi per server. Thus the openapi endpoint can be registered to http://{host}:{port}/{context-root}/openapi. Looking at the code looks like it is possible to be done. If we have access to the information of context-root in https://github.com/wildfly/wildfly/blob/501c916b14663d328582a6625e9d492c2f8c0cfc/microprofile/openapi-smallrye/src/main/java/org/wildfly/extension/microprofile/openapi/deployment/OpenAPIHttpHandlerServiceConfigurator.java#L68 , then we can start it considering the context-root. I think it will be a very common scenario of use and it will be very helpful to users.