diff --git a/docs/rest-api/rest-zeppelin-server.md b/docs/rest-api/rest-zeppelin-server.md index 5ba696d0f1..0da4b6c566 100644 --- a/docs/rest-api/rest-zeppelin-server.md +++ b/docs/rest-api/rest-zeppelin-server.md @@ -49,12 +49,11 @@ If you work with Apache Zeppelin and find a need for an additional REST API, ple 200 - Fail code - 500 + Fail code + 500 - sample JSON response - + sample JSON response
 {
@@ -62,12 +61,12 @@ If you work with Apache Zeppelin and find a need for an additional REST API, ple
   "message": "Zeppelin version",
   "body": [
     {
-      "version": "0.8.0-SNAPSHOT",
-      "commitId": "abc0123",
-      "timestamp": "2017-01-02 03:04:05"
+      "version": "0.8.0",
+      "git-commit-id": "abc0123",
+      "git-timestamp": "2017-01-02 03:04:05"
     }
   ]
-}     
+}
         
@@ -89,29 +88,27 @@ If you work with Apache Zeppelin and find a need for an additional REST API, ple 200 - Fail code - 406 + Fail code + 406 - sample JSON response - + sample JSON response
 {
   "status": "OK"
-}     
+}
         
- sample error JSON response - + sample error JSON response
 {
   "status":"NOT_ACCEPTABLE",
   "message":"Please check LOG level specified. Valid values: DEBUG, ERROR, FATAL, INFO, TRACE, WARN"
-}     
+}
         
diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/ZeppelinRestApi.java b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/ZeppelinRestApi.java index 12abc51711..03e03de2a9 100644 --- a/zeppelin-server/src/main/java/org/apache/zeppelin/rest/ZeppelinRestApi.java +++ b/zeppelin-server/src/main/java/org/apache/zeppelin/rest/ZeppelinRestApi.java @@ -61,8 +61,8 @@ public class ZeppelinRestApi { public Response getVersion() { Map versionInfo = new HashMap<>(); versionInfo.put("version", Util.getVersion()); - versionInfo.put("commitId", Util.getGitCommitId()); - versionInfo.put("timestamp", Util.getGitTimestamp()); + versionInfo.put("git-commit-id", Util.getGitCommitId()); + versionInfo.put("git-timestamp", Util.getGitTimestamp()); return new JsonResponse<>(Response.Status.OK, "Zeppelin version", versionInfo).build(); }