-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.3
-
%
-
-
If there is two or mode swagger v2 rest services in the container (standalone or fabric ) and you are using HTTP Gateway to access them, you will only able to see the swagger file of the first one deployed.
Example:
1st deployed: http://localhost:8181/cxf/myService/swagger.yaml, shows:
swagger: "2.0" info: description: "Camel CXFRS Demo :: A Red Hat JBoss Fuse 6.3.0 RESTful service that\ \ handles operations on an IP address or a hostname" version: "1.0.0-SNAPSHOT" title: "RESTful IP/Hostname Service DEMO" contact: name: "example@redhat.com" license: name: "Apache 2.0 License" url: "http://www.apache.org/licenses/LICENSE-2.0.html" host: "example" basePath: "/cxf/myService" schemes: - "http" - "https" paths: /ipservice/example: get: operationId: "getExample" produces: - "application/json" - "application/xml" parameters: - name: "type" in: "query" required: false type: "string" default: "json" - name: "ip" in: "query" required: false type: "string" responses: default: description: "successful operation"
2nd deployed: http://localhost:8181/cxf/secondService/swagger.yaml, shows the same info as the first one deployed:
swagger: "2.0" info: description: "Camel CXFRS Demo :: A Red Hat JBoss Fuse 6.3.0 RESTful service that\ \ handles operations on an IP address or a hostname" version: "1.0.0-SNAPSHOT" title: "RESTful IP/Hostname Service DEMO" contact: name: "example@redhat.com" license: name: "Apache 2.0 License" url: "http://www.apache.org/licenses/LICENSE-2.0.html" host: "example" basePath: "/cxf/myService" schemes: - "http" - "https" paths: /ipservice/example: get: operationId: "getExample" produces: - "application/json" - "application/xml" parameters: - name: "type" in: "query" required: false type: "string" default: "json" - name: "ip" in: "query" required: false type: "string" responses: default: description: "successful operation"