Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F140C64A for ; Wed, 17 Dec 2014 16:12:28 +0000 (UTC) Received: (qmail 7579 invoked by uid 500); 17 Dec 2014 16:12:28 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 7517 invoked by uid 500); 17 Dec 2014 16:12:28 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 7508 invoked by uid 99); 17 Dec 2014 16:12:28 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Dec 2014 16:12:28 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id EFE5E82EC29; Wed, 17 Dec 2014 16:12:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sergeyb@apache.org To: commits@cxf.apache.org Message-Id: <3bc1cf26d6a448c0a5a041adba23b833@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Wed Dec 17 16:11:51 2014 +0000 Committer: Sergey Beryozkin 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() {