What directory is the Swagger JSON doc generated to? I don't find any swagger files after running my app with Swagger2Feature even though I am getting swagger output in my logs: 2016-06-03T13:13:49,924 DEBUG [main] io.swagger.jaxrs.Reader - picking up response class from method public javax.ws.rs.core.Response com.twc.ctg.ecp.service.rest.EcpTvodRestServiceV1.postEntitlement(javax.servlet.http.HttpServletRequest,com.twc.ctg.ecp.model.tvod.TvodEntitlementOrder) throws com.twc.atgw.commons.webservices.exception.GenericRestException
And I have run about 5 different examples. All the examples work, but none fit my situation exactly. I need cxf + spring + stand alone app (no .war) On Fri, Jun 3, 2016 at 2:15 PM, Sergey Beryozkin [via CXF] < [email protected]> wrote: > Hi > > All it does it ensures that Swagger JSON or YAML doc is available to the > clients (browsers, etc). > Swagger UI is one such client - it can show Swagger JSON (which is what > SwaggerFeature -> Swagger Core/JAX-RS produces) nicely formatted. As I > said please do check the demo poms on how to get Swagger UI installed. > > It does take few tries indeed with setting UI but it is not what > SwaggerFeature can help with, I recall spending a bit of time while > trying the demos too. Try the demo first... > > Aki, Andriy, can Swagger2Feature do something to make it simpler to plug > in UI ? I guess it is unlikely it can download it itself, etc. > > Cheers, Sergey > > On 03/06/16 20:04, javaworkinggirl wrote: > > > I still can't get swagger2Feature to work in my project > > > > What is the expected outcome of Swagger2Feature? I am expecting that I > am > > going to see swagger documents for my api under http://0.0.0.0:8877/api, > but > > the logs say 404 not found. > > > > Can someone explain more what is happening behind the scenes on > > Swagger2Feature? > > Any recommendations? Thx. > > > > Here's the config I am using in applicationContext.xml: > > > > <bean id="swagger2Feature" > > class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> > > <property name="basePath" value="/api"/> > > </bean> > > > > > > > > <jaxrs:server id="ecpWebServices" > > basePackages="com.twc.ctg.ecp.service.rest.custom" > > address="http://0.0.0.0:8877" depends-on="activeMQConnectionFactory"> > > <jaxrs:inInterceptors> > > <ref bean="validationInInterceptor"/> > > </jaxrs:inInterceptors> > > <jaxrs:outInterceptors> > > <ref bean="validationOutInterceptor"/> > > </jaxrs:outInterceptors> > > <jaxrs:serviceBeans> > > <ref bean="ecpAdminRestServiceV1"/> > > <ref bean="ecpApplicationRestServiceV1"/> > > <ref bean="ecpEntitlementRestServiceV2"/> > > <ref bean="ecpTvodRestServiceV1"/> > > <ref bean="ecpHouseholdHistoryRestServiceV1"/> > > <ref bean="ecpPromotionRestServiceV1"/> > > <ref bean="ecpTvodPromotionServiceV1"/> > > <ref bean="ecpFeatureRestServiceV1"/> > > <ref bean="ecpPpvServiceV1"/> > > </jaxrs:serviceBeans> > > <jaxrs:providers> > > <bean > > class="com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider"/> > > <bean > > > class="org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"/> > > <ref bean="genericRestExceptionMapper"/> > > <ref bean="customValidationExceptionMapper"/> > > </jaxrs:providers> > > <jaxrs:features> > > <ref bean="swagger2Feature" /> > > </jaxrs:features> > > </jaxrs:server> > > > > > > > > -- > > View this message in context: > http://cxf.547215.n5.nabble.com/Swagger2Feature-jar-and-version-tp5769165p5769278.html > > Sent from the cxf-user mailing list archive at Nabble.com. > > > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://cxf.547215.n5.nabble.com/Swagger2Feature-jar-and-version-tp5769165p5769280.html > To unsubscribe from Swagger2Feature jar and version, click here > <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5769165&code=amF2YXdvcmtpbmdnaXJsQGdtYWlsLmNvbXw1NzY5MTY1fC0xMTE1Njg5NTY4> > . > NAML > <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://cxf.547215.n5.nabble.com/Swagger2Feature-jar-and-version-tp5769165p5769281.html Sent from the cxf-user mailing list archive at Nabble.com.
