cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject git commit: CXF-6046: Enhance SwaggerFeature to support JAX-RS annotations. Replaced embedded Swagger UI with webjar.
Date Sun, 02 Nov 2014 22:37:05 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 18204e5bb -> 85d6e1a63


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/85d6e1a6
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/85d6e1a6
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/85d6e1a6

Branch: refs/heads/master
Commit: 85d6e1a63c95088917853436fe1adcce4863ce6c
Parents: 18204e5
Author: reta <drreta@gmail.com>
Authored: Sun Nov 2 17:36:24 2014 -0500
Committer: reta <drreta@gmail.com>
Committed: Sun Nov 2 17:36:24 2014 -0500

----------------------------------------------------------------------
 .../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/85d6e1a6/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