cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [4/6] cxf git commit: CXF-6046: Enhance SwaggerFeature to support JAX-RS annotations. Replaced embedded Swagger UI with webjar.
Date Thu, 09 Jul 2015 12:18:37 GMT
CXF-6046: Enhance SwaggerFeature to support JAX-RS annotations. Replaced embedded Swagger UI
with webjar.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/4d4ddf08
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/4d4ddf08
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/4d4ddf08

Branch: refs/heads/3.0.x-fixes
Commit: 4d4ddf080feef80f7cf9b6db4ce245ed6badbbf2
Parents: 068c291
Author: reta <drreta@gmail.com>
Authored: Sun Nov 2 17:36:24 2014 -0500
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Jul 9 13:52:00 2015 +0200

----------------------------------------------------------------------
 .../src/main/java/demo/jaxrs/swagger/server/Server.java           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/4d4ddf08/distribution/src/main/release/samples/jax_rs/description_swagger/src/main/java/demo/jaxrs/swagger/server/Server.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/description_swagger/src/main/java/demo/jaxrs/swagger/server/Server.java
b/distribution/src/main/release/samples/jax_rs/description_swagger/src/main/java/demo/jaxrs/swagger/server/Server.java
index 536c6a6..7d5fbb2 100644
--- a/distribution/src/main/release/samples/jax_rs/description_swagger/src/main/java/demo/jaxrs/swagger/server/Server.java
+++ b/distribution/src/main/release/samples/jax_rs/description_swagger/src/main/java/demo/jaxrs/swagger/server/Server.java
@@ -42,7 +42,8 @@ public class Server {
         context.setContextPath("/");
         context.addServlet(staticHolder, "/static/*");
         context.addServlet(servletHolder, "/*");  
-        context.setResourceBase(getClass().getResource("/META-INF/resources/webjars/swagger-ui/2.0.24").toURI().toString());
+        context.setResourceBase(
+            getClass().getResource("/META-INF/resources/webjars/swagger-ui/2.0.24").toURI().toString());
         
         servletHolder.setInitParameter("redirects-list", "/ /index.html /.*[.]js /css/.*
/images/.* lib/.*");
         servletHolder.setInitParameter("redirect-servlet-name", staticHolder.getName());


Mime
View raw message