Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
b3c451cf63
2 muutettua tiedostoa jossa 156 lisäystä ja 31 poistoa
  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"
+          }
+        }
+      ]
     }
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 140 - 16
ambari-server/docs/api/v1/index.md


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä