Okay I will try that. On Thu, Jun 2, 2016 at 10:32 AM, Aki Yoshida-3 [via CXF] < [email protected]> wrote:
> hi, > those swagger2 samples included in cxf's samples include README.txt > explaining how you can try them out. > In short, both description_swagger2 and description_swagger2_web are > the standalone/embedded-jetty and web-container samples and both > deploy the swagger-ui with the sample apps. description_swagger2_osgi > is an osgi bundle that doesn't include the swagger-ui. You can use > swagger-ui from elsewhere (e.g., from one of the other samples or from > a local file system). > regards, aki > > 2016-06-02 11:24 GMT+02:00 Sergey Beryozkin <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5769226&i=0>>: > > > Hi > > > > I believe one needs to add Swagger UI, Aki Youshida added 3 Swagger 2 > demos, > > see this directory: > > > > > https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs > > > > Can you please try one of them ? > > > > Actually, I've just tried > > > https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot > > > > which creates a CXFServlet with a URI "/services/helloworld/*" pattern > > and registers the feature at > > > https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java#L49 > > > > and > > > > http://localhost:8080/services/helloservice/swagger.json > > > > returns JSON, > > > > http://localhost:8080/services/helloservice/swagger.yaml > > > > return Yaml. > > > > but I guess having UI on top of it would be good, so please Aki's demo's > > (pom.xml) on how to wire Swagger UI in > > > > HTH, Sergey > > > > > > > > On 01/06/16 21:21, javaworkinggirl wrote: > >> > >> Okay I got my code to compile and run with Swagger2Feature, but I don't > >> see > >> any swagger files being generated. Where are they supposed to be > >> generated > >> at? Does Swagger2Feature log any status? > >> > >> <!-- CXF Swagger2Feature --> > >> <bean id="swagger2FeatureWebServices" > >> class="org.apache.cxf.jaxrs.swagger.Swagger2Feature"> > >> <property name="basePath" value="/api"/> > >> <property name="contact" value="[hidden email] > <http:///user/SendEmail.jtp?type=node&node=5769226&i=1>"/> > >> <property name="description" value="xyz REST Services"/> > >> <property name="host" value="0.0.0.0"/> > >> <property name="prettyPrint" value="false"/> > >> <property name="resourcePackage" > >> value="com.twc.ctg.xyz.service.rest"/> > >> <property name="title" value="xyz REST Services"/> > >> </bean> > >> > >> > >> <!-- Depends on activemq due to tvod vendor rest service using amqp to > >> send notifications --> > >> <!-- This endpoint scans our rest.custom directory for Providers, > >> NameBindings etc. --> > >> <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="swagger2FeatureWebServices" /> > >> </jaxrs:features> > >> </jaxrs:server> > >> > >> > >> > >> > >> On Wed, Jun 1, 2016 at 2:38 AM, Sergey Beryozkin [via CXF] < > >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5769226&i=2>> > wrote: > >> > >>> Hi > >>> > >>> I'll be moving it into a dedicated module in 3.2.0-SNAPSHOT, the > current > >>> module has both WADL and Swagger code > >>> > >>> Cheers, Sergey > >>> On 01/06/16 00:35, Benson Margulies wrote: > >>> > >>>> Somewhere in > >>>> > >>>> > >>>> [INFO] > >>> > >>> org.apache.cxf:cxf-rt-rs-service-description:jar:3.1.4:provided > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> On Tue, May 31, 2016 at 7:31 PM, javaworkinggirl > >>>> <[hidden email] < > http:///user/SendEmail.jtp?type=node&node=5769172&i=0>> > >>> > >>> wrote: > >>>>> > >>>>> Which jar? > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> View this message in context: > >>> > >>> > >>> > http://cxf.547215.n5.nabble.com/Swagger2Feature-jar-and-version-tp5769165p5769167.html > >>>>> > >>>>> Sent from the cxf-user mailing list archive at Nabble.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-tp5769165p5769172.html > >>> To unsubscribe from Swagger2Feature jar and version, click here > >>> > >>> < > >>> . > >>> 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-tp5769165p5769200.html > >> Sent from the cxf-user mailing list archive at Nabble.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-tp5769165p5769226.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-tp5769165p5769227.html Sent from the cxf-user mailing list archive at Nabble.com.
