Browse Source

AMBARI-2260 - Bad hosts query example in API docs

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1489086 13f79535-47bb-0310-9956-ffa450edef68
Tom Beerbower 12 years ago
parent
commit
b3c451cf63
2 changed files with 156 additions and 31 deletions
  1. 16 15
      ambari-server/docs/api/v1/clusters-cluster.md
  2. 140 16
      ambari-server/docs/api/v1/index.md

+ 16 - 15
ambari-server/docs/api/v1/clusters-cluster.md

@@ -144,20 +144,21 @@ Get information for the cluster "c1".
           		}
         	} 
     	],
-    	"hosts" : [
-      		{
-      			"href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host1",
-      			"Hosts" : {
-        			"cluster_name" : "c1",
-        			"host_name" : "some.cluster.host"
-        		}
-      		},
-      		{
-      			"href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/host2",
-      		"Hosts" : {
-        		"cluster_name" : "c1",
-        		"host_name" : "another.cluster.host"
-        	}
-        ]
+      "hosts" : [
+        {
+          "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/some.host",
+          "Hosts" : {
+              "cluster_name" : "c1",
+              "host_name" : "some.host"
+          }
+        },
+        {
+          "href" : "http://your.ambari.server/api/v1/clusters/c1/hosts/another.host",
+          "Hosts" : {
+              "cluster_name" : "c1",
+              "host_name" : "another.host"
+          }
+        }
+      ]
     }
 

File diff suppressed because it is too large
+ 140 - 16
ambari-server/docs/api/v1/index.md


Some files were not shown because too many files changed in this diff