• Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Medium Medium
    • 2.6 M1, 2.6
    • 2.5 M2
    • REST API
    • None

      JSON data which is returned from the builds rest api service is incorrect. Please see screenshots.

      Example: https://bamboo.extranet.atlassian.com/rest/api/latest/build/CRUC.json?expand=builds.build

        1. screenshot058.png
          screenshot058.png
          261 kB
        2. screenshot059.png
          screenshot059.png
          139 kB

            [BAM-4871] REST: Incorrect representation of JSON data

            Marek Went (Inactive) added a comment - - edited

            build IS AN array of elements, not HAS AN array of elements.
            This is how collection (called array here) is represented in JSON - according to http://tools.ietf.org/html/rfc4627

            And this is the way Jersey serializes JSON data. Bamboo is probably first product following Atlassian guidelines for REST , so that's why the whole structure look like this.

            Marek Went (Inactive) added a comment - - edited build IS AN array of elements, not HAS AN array of elements. This is how collection (called array here) is represented in JSON - according to http://tools.ietf.org/html/rfc4627 And this is the way Jersey serializes JSON data. Bamboo is probably first product following Atlassian guidelines for REST , so that's why the whole structure look like this.

              mwent Marek Went (Inactive)
              sruiz Seb Ruiz (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 7h
                  7h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 7h
                  1h