Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-19566

REST repository response example incorrectly shows defaultBranch field

XMLWordPrintable

      Issue Summary

      REST response example for the Get repositories endpoint does not match the actual response given by the application.

      Steps to Reproduce

      Observe difference in response between Get repositories endpoint and the documented response example. Notably, the response example includes the defaultBranch field, which is not actually returned.

      Expected Results

      The Get repositories endpoint response example correctly matches the actual response given by the application (no defaultBranch field).

      Actual Results

      Unlike the Get repositories endpoint response example, the actual response doesn't contain defaultBranch field.

      Workaround

      The default branch for a repository can be retrieved with the Get repository default branch endpoint.

              dkjellin Daniel (Inactive)
              spetrucev Stefan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: