[ https://issues.apache.org/jira/browse/CXF-7730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Kieselhorst resolved CXF-7730. ------------------------------------- Resolution: Won't Fix > Swagger UI 3.5.0 is not working with apaceh cxf 3.1.10 > ------------------------------------------------------ > > Key: CXF-7730 > URL: https://issues.apache.org/jira/browse/CXF-7730 > Project: CXF > Issue Type: Bug > Reporter: div > Priority: Blocker > Attachments: image-2018-04-26-08-42-55-781.png, > image-2018-04-26-08-51-25-813.png > > > Hi, > > We are trying to create a swagger ui for apache cxf services and > <host>:<port>/swagger.json gives me json response. But when I try > [http://localhost:<port>/api-docs/?url=/swagger.json|http://localhost:9110/api-docs/?url=/swagger.json] > I keep getting 404. > > !image-2018-04-26-08-42-55-781.png! > http://localhost:<port>/api-docs?url=swagger.json > !image-2018-04-26-08-51-25-813.png! > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-rt-rs-service-description-swagger</artifactId> > <version>3.1.11</version> > </dependency> > <!-- [https://mvnrepository.com/artifact/org.webjars/swagger-ui] --> > <dependency> > <groupId>org.webjars</groupId> > <artifactId>swagger-ui</artifactId> > <version>3.5.0</version> > </dependency> > > <bean id="swagger2Feature" > class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> > <!-- customize some of the properties --> > <bean id="jsonProvider" > class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider" /> > </bean> > <jaxrs:server id="" address="> > <jaxrs:serviceBeans> > <ref bean="" /> > </jaxrs:serviceBeans> > <jaxrs:providers> > <ref bean="jsonProvider" /> > </jaxrs:providers> > <jaxrs:features> > <ref bean="swagger2Feature" /> > </jaxrs:features> > </jaxrs:server> -- This message was sent by Atlassian JIRA (v7.6.3#76005)