geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [3/3] incubator-geode git commit: GEODE-1163 Fix branding in Swagger UI
Date Sat, 09 Apr 2016 04:19:15 GMT
GEODE-1163 Fix branding in Swagger UI


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/0a98fa62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/0a98fa62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/0a98fa62

Branch: refs/heads/develop
Commit: 0a98fa62084ba116a19764162279cb1ae9dbb08c
Parents: c23ec7a
Author: Nitin Lamba <nlamba@apache.org>
Authored: Sat Apr 2 00:40:58 2016 -0700
Committer: Anthony Baker <abaker@apache.org>
Committed: Fri Apr 8 21:18:55 2016 -0700

----------------------------------------------------------------------
 .../gemfire/internal/i18n/LocalizedStrings.java        |  8 ++++++++
 .../internal/web/swagger/config/SwaggerConfig.java     | 13 +++++++------
 2 files changed, 15 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/0a98fa62/geode-core/src/main/java/com/gemstone/gemfire/internal/i18n/LocalizedStrings.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/i18n/LocalizedStrings.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/i18n/LocalizedStrings.java
index 8365f1a..e923ed5 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/i18n/LocalizedStrings.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/i18n/LocalizedStrings.java
@@ -2149,6 +2149,14 @@ public class LocalizedStrings extends ParentLocalizedStrings {
   public static final StringId AbstractGatewaySenderEventProcessor_ATTEMPT_TO_SET_BATCH_SIZE_FAILED
= new StringId(6615, "Attempting to set the batch size from {0} to {1} events failed. Instead
it was set to 1.");
   public static final StringId GatewaySenderEventRemoteDispatcher_MESSAGE_TOO_LARGE_EXCEPTION
= new StringId(6616, "The following exception occurred attempting to send a batch of {0} events.
The batch will be tried again after reducing the batch size to {1} events.");
 
+  // Developer REST interface
+  public static final StringId SwaggerConfig_VENDOR_PRODUCT_LINE = new StringId(6617, "Apache
Geode Developer REST API");
+  public static final StringId SwaggerConfig_DESCRIPTOR = new StringId(6618, "Developer REST
API and interface to Geode's distributed, in-memory data grid and cache.");
+  public static final StringId SwaggerConfig_EULA_LINK = new StringId(6619, "http://www.apache.org/licenses/");
+  public static final StringId SwaggerConfig_SUPPORT_LINK = new StringId(6620, "dev@geode.incubator.apache.org");
+  public static final StringId SwaggerConfig_DOC_TITLE = new StringId(6621, "Apache Geode
Documentation");
+  public static final StringId SwaggerConfig_DOC_LINK = new StringId(6622, "http://geode.incubator.apache.org/docs/");
+
   /** Testing strings, messageId 90000-99999 **/
   
   /** These are simple messages for testing, translated with Babelfish. **/

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/0a98fa62/geode-web-api/src/main/java/com/gemstone/gemfire/rest/internal/web/swagger/config/SwaggerConfig.java
----------------------------------------------------------------------
diff --git a/geode-web-api/src/main/java/com/gemstone/gemfire/rest/internal/web/swagger/config/SwaggerConfig.java
b/geode-web-api/src/main/java/com/gemstone/gemfire/rest/internal/web/swagger/config/SwaggerConfig.java
index b57c056..3c70991 100644
--- a/geode-web-api/src/main/java/com/gemstone/gemfire/rest/internal/web/swagger/config/SwaggerConfig.java
+++ b/geode-web-api/src/main/java/com/gemstone/gemfire/rest/internal/web/swagger/config/SwaggerConfig.java
@@ -20,6 +20,7 @@ import java.util.Arrays;
 import java.util.Collections;
 import java.util.List;
 
+import com.gemstone.gemfire.internal.i18n.LocalizedStrings;
 import com.mangofactory.swagger.configuration.JacksonScalaSupport;
 import com.mangofactory.swagger.configuration.SpringSwaggerConfig;
 import com.mangofactory.swagger.configuration.SpringSwaggerModelConfig;
@@ -59,12 +60,12 @@ public class SwaggerConfig {
    */
   private ApiInfo apiInfo() {
     return new ApiInfo(
-        "Pivotal" + "\u2122" + " GemFire" + "\u00AE" + " Developer REST API",
-        "Developer REST API and interface to GemFire's distributed, in-memory data grid and
cache.",
-        "https://network.pivotal.io/pivotal_software_eula",
-        "support@pivotal.io",
-        "Pivotal GemFire Documentation",
-        "http://gemfire.docs.pivotal.io/index.html");
+        LocalizedStrings.SwaggerConfig_VENDOR_PRODUCT_LINE.toLocalizedString(),
+        LocalizedStrings.SwaggerConfig_DESCRIPTOR.toLocalizedString(),
+        LocalizedStrings.SwaggerConfig_EULA_LINK.toLocalizedString(),
+        LocalizedStrings.SwaggerConfig_SUPPORT_LINK.toLocalizedString(),
+        LocalizedStrings.SwaggerConfig_DOC_TITLE.toLocalizedString(),
+        LocalizedStrings.SwaggerConfig_DOC_LINK.toLocalizedString());
   }
 
   /**


Mime
View raw message