Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4154

Swagger doesn't render properly REST Api endpoints with SpringBoot

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.12.0.GA
    • Kie-Server
    • None
    • False
    • False
    • Hide
      1. Download and extract the reproducer
      2. Run mvn clean install on the "example-kjar" folder
      3. Run mvn clean install on the "kie-server" folder
      4. Run java -jar target/spring-boot-kie-server-immutable-1.0.jar
      5. Open http://localhost:8090/rest/api-docs?url=http://localhost:8090/rest/swagger.json#/
        • user: kieserver
        • pass: kieserver1!
      Show
      Download and extract the reproducer Run mvn clean install on the "example-kjar" folder Run mvn clean install on the "kie-server" folder Run java -jar target/spring-boot-kie-server-immutable-1.0.jar Open http://localhost:8090/rest/api-docs?url=http://localhost:8090/rest/swagger.json#/ user: kieserver pass: kieserver1!

    Description

      When enabling and adding the right version and dependencies for Swagger in a kie-server project using SpringBoot, it doesn't work using the version used and specified by the parent pom xml for the webjar:swagger-ui artifact.

      As per 7.12.0 RHPAM release, supported configuration version for swagger-ui is "2.2.10". See [1] in 7.59.x branch.

      If we change it to some latest version, it works fine, for instance, using "3.25.0" version.

      So we might need to upgrade the swagger-ui version in our parent pom to some more updated version of the same

      A reproducer is attached.

      [1] https://github.com/kiegroup/droolsjbpm-build-bootstrap/blob/7.59.x/pom.xml#L272

      Attachments

        Activity

          People

            hbelmiro@redhat.com Helber Belmiro
            antferna Antonio Fernandez Alhambra (Inactive)
            Karel Suta Karel Suta
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: