Rest endpoint uses the key word "id" to return name value

XMLWordPrintable

    • 0
    • 1

      Summary

      Rest endpoint uses the key word "id" to return name value

      Steps to Reproduce

      While retrieving release information with the REST call https://docs.atlassian.com/atlassian-bamboo/REST/6.6.2/#d2e2217 we will find the following information:

      curl --silent -H "Content-Type:application/json" -u admin:password -X GET 'http://bamboo663:8085/rest/api/latest/search/versions?searchTerm=release&deploymentProjectId=2359297'
      
      <?xml version="1.0" encoding="UTF-8"?>
      <searchResults start-index="0" max-result="1" size="1">
         <searchResults id="release-1" type="deploymentVersion">
            <searchEntity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="deploymentVersionSearchResult" id="release-1">
               <name>release-1</name>
            </searchEntity>
         </searchResults>
      </searchResults>
      

      Notes

      the parameter "id" gives as result "release-1". Although the value is expected, is misleading since one might expect a release id instead.

            Assignee:
            Unassigned
            Reporter:
            Patricio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: