Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-13015

spring-boot-cxf-jaxrs vs spring-boot-cxf-jaxrs-xml

XMLWordPrintable

      Installing https://github.com/fabric8-quickstarts/spring-boot-cxf-jaxrs.git with tag spring-boot-cxf-jaxrs-7.6.0.fuse-sb2-760040-redhat-00001 exposes openapi.json, but doesn't expose swagger.json and the Installing https://github.com/fabric8-quickstarts/spring-boot-cxf-jaxrs-xml.git with tag spring-boot-cxf-jaxrs-xml-7.6.0.fuse-sb2-760011-redhat-00001 is exact opposite

      curl "http://spring-boot-cxf-jaxrs-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com/services/helloservice/openapi.json"
      {
        "openapi" : "3.0.1",
        "info" : {
          "title" : "Spring Boot CXF REST Application",
          "description" : "This sample project demonstrates how to use CXF JAX-RS services with Spring Boot.",
          "contact" : {
            "name" : "Red Hat FUSE"
          },
          "license" : {
            "name" : "Apache 2.0 License",
            "url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
          },
          "version" : "1.0.0"
        },
        "servers" : [ {
          "url" : "http://spring-boot-cxf-jaxrs-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com/services/helloservice"
        } ],
        "paths" : {
          "/sayHello/{a}" : {
            "get" : {
              "operationId" : "sayHello_1",
              "parameters" : [ {
                "name" : "a",
                "in" : "path",
                "required" : true,
                "schema" : {
                  "type" : "string"
                }
              } ],
              "responses" : {
                "default" : {
                  "description" : "default response",
                  "content" : {
                    "text/plain" : {
                      "schema" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "/sayHello" : {
            "get" : {
              "operationId" : "welcome_1",
              "responses" : {
                "default" : {
                  "description" : "default response",
                  "content" : {
                    "text/plain" : {
                      "schema" : {
                        "type" : "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }%
      
      curl "http://spring-boot-cxf-jaxrs-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com/services/helloservice/swagger.json"
      
      curl "http://spring-boot-cxf-jaxrs-xml-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com/services/helloservice/swagger.json"
      {"swagger":"2.0","info":{"license":{"name":"Apache 2.0 License","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"basePath":"/services/helloservice","tags":[{"name":"sayHello"}],"paths":{"/sayHello/{a}":{"get":{"tags":["sayHello"],"operationId":"sayHello","produces":["text/plain"],"parameters":[{"name":"a","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"},"headers":{}}}}},"/sayHello":{"get":{"tags":["sayHello"],"operationId":"welcome","produces":["text/plain"],"parameters":[],"responses":{"200":{"description":"successful operation","schema":{"type":"string"},"headers":{}}}}}}}%
      
      curl "http://spring-boot-cxf-jaxrs-xml-llowinge.apps.foo43ga.openshift-aws.rhocf-dev.com/services/helloservice/openapi.json"
      

      The quickstart readme documentation states it should use swagger.json both SB1/SB2.

            yfang@redhat.com Freeman(Yue) Fang
            llowinge@redhat.com Lukas Lowinger
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: