[ 
https://issues.apache.org/jira/browse/AMBARI-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673339#comment-13673339
 ] 

Mahadev konar commented on AMBARI-2260:
---------------------------------------

+1 for the patch. Thanks Tom for the docs on API's. Will definitely help folks 
integrating with Ambari API's.
                
> Bad hosts query example in API docs
> -----------------------------------
>
>                 Key: AMBARI-2260
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2260
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 1.2.4
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.2.5
>
>         Attachments: AMBARI-2260.patch
>
>
> The example ...
> {code}
> "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"
>         }
>     ]
> {code}
> ... should read ...
> {code}
>  "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"
>             }
>                 }
>     ]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to