-
Bug
-
Resolution: Done
-
Major
-
jboss-fuse-6.2.1
-
None
-
%
-
-
-
7.0 Sprint 1
When deploying multiple bundles exposing swagger-annotated services, API documentation for the services are mixed. SwaggerFeature is defined as a child element for the cxf:rsServer in each case, and serlet contextual URLs are different - like http://localhost:8181/cxf/greet and http://localhost/cxf/customer.
It appears that the second service deployed gets the @Path from the first. In the example below, the first service deployed was the customer service:
{"apiVersion":"4.0","swaggerVersion":"1.2","apis":[{"path":"/customerservice","description":"Simple Spring JAX-RS Customer Service with Swagger documentation"}],"info":{"title":"Red Hat :: Demo - Customer Service","description":"Sample REST-based Customer Service","contact":"committer@apache.org","license":"Apache 2.0 License","licenseUrl":"http://www.apache.org/licenses/LICENSE-2.0.html"}}
Then the greeter service:
{"apiVersion":"4.0","swaggerVersion":"1.2","apis":[{"path":"/customerservice","description":"Simple Spring JAX-RS Customer Service with Swagger documentation"}],"info":{"title":"Red Hat :: Example - Greeting Service","description":"Sample REST-based Greeting Service","contact":"committer@apache.org","license":"Apache 2.0 License","licenseUrl":"http://www.apache.org/licenses/LICENSE-2.0.html"}}
The API description is correct, but not that the path points to the customer service. Opening the APIs in swagger-ui displays the customer service operations for both services. Flipping the deployment order, results in the reverse - both display the greeter API.
- causes
-
ENTESB-6764 Swagger Feature throws NullPointerException if using absolute path in server address
- Closed
- is related to
-
ENTESB-6111 [Swagger] Issue with redeployment and cache
- Closed