cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Copying minor updates to SwaggerFeature 3.0.x made as part of bigger changes on the trunk
Date Wed, 17 Dec 2014 16:12:27 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 261098248 -> 1512a124d


Copying minor updates to SwaggerFeature 3.0.x  made as part of bigger changes on the trunk


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

Branch: refs/heads/3.0.x-fixes
Commit: 1512a124d1516e8dbf482d791735d9f4f31133fb
Parents: 2610982
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Dec 17 16:11:51 2014 +0000
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Dec 17 16:11:51 2014 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1512a124/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
index 2b3d085..6461801 100644
--- a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
+++ b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java
@@ -33,9 +33,9 @@ public class SwaggerFeature extends AbstractFeature {
     private String resourcePackage;
     private String version = "1.0.0";
     private String basePath;
-    private String title = "Rest sample app";
-    private String description = "This is a app.";
-    private String contact = "freeman.fang@gmail.com";
+    private String title = "Sample REST Application";
+    private String description = "The Application";
+    private String contact = "committer@apache.org";
     private String license = "Apache 2.0 License";
     private String licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.html";
     private boolean scan = true;
@@ -78,7 +78,7 @@ public class SwaggerFeature extends AbstractFeature {
     private void calulateDefaultBasePath(Server server) {
         if (getBasePath() == null || getBasePath().length() == 0) {
             String address = server.getEndpoint().getEndpointInfo().getAddress();
-            setBasePath(address + "/api-docs");
+            setBasePath(address);
         }
     }
     public String getResourcePackage() {


Mime
View raw message