Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13638

Permit multiples applications to the same server registry a MP openapi endpoint

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 20.0.0.Final
    • MP OpenAPI
    • 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:

      https://github.com/wildfly/wildfly/blob/501c916b14663d328582a6625e9d492c2f8c0cfc/microprofile/openapi-smallrye/src/main/java/org/wildfly/extension/microprofile/openapi/deployment/OpenAPIDocumentProcessor.java#L71

       

      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. 

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            rhn-support-rhsilva Rhuan Rocha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: