Browse Source

[SPEC] Separated info.json into info and ping.json (GET vs HEAD)

Clinton Gormley 11 years ago
parent
commit
e9b14ff636
2 changed files with 16 additions and 1 deletions
  1. 1 1
      rest-api-spec/api/info.json
  2. 15 0
      rest-api-spec/api/ping.json

+ 1 - 1
rest-api-spec/api/info.json

@@ -1,7 +1,7 @@
 {
   "info": {
     "documentation": "http://www.elasticsearch.org/guide/",
-    "methods": ["GET", "HEAD"],
+    "methods": ["GET"],
     "url": {
       "path": "/",
       "paths": ["/"],

+ 15 - 0
rest-api-spec/api/ping.json

@@ -0,0 +1,15 @@
+{
+  "info": {
+    "documentation": "http://www.elasticsearch.org/guide/",
+    "methods": ["HEAD"],
+    "url": {
+      "path": "/",
+      "paths": ["/"],
+      "parts": {
+      },
+      "params": {
+      }
+    },
+    "body": null
+  }
+}