ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-3763) Incorrect href for a POST response using associated resources
Date Wed, 13 Nov 2013 22:05:19 GMT
Tom Beerbower created AMBARI-3763:
-------------------------------------

             Summary: Incorrect href for a POST response using associated resources
                 Key: AMBARI-3763
                 URL: https://issues.apache.org/jira/browse/AMBARI-3763
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


API call:

{code}
curl -u admin:admin -i -X POST -d '[{"ConfigGroup":{"cluster_name":"c1","group_name":"hdfs-nextgenslaves-1","tag":"HDFS","description":"HDFS
configs for rack added on Nov 7, 2013","hosts":[{"host_name":"c6402.ambari.apache.org"}],"desired_configs":[{"type":"core-site","tag":"nextgen1","properties":{"key1":"value1","ipc.client.connect.max.retries":"35"}},{"type":"global","tag":"nextgen1","properties":{"key1":"value1","namenode_heapsize":"1250m"}}]}}]'
http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups
{code}

Response:

{code}
{
  "resources" : [
    {
      "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/resources/2",
      "ConfigGroup" : {
        "id" : 2
      }
    }
  ]
}
{code}

Correct href:
{code}
http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/config_groups/2
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message