1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #4048 resolved

REST API - List of branches is not a JSON List (BB-4242)

Alexandre Lord
created an issue

The REST API allows a repository to be queried for a list of branches. What is returned by the API is a JSON litteral, not a list of branches.

{ "master": { ... }, "trunk": { ... } }

It should be formed something like {[ { "name" : "master", ... }, { "name" : "trunk", ... } ]}

It would also be useful if it could also return if the branch is currently involved in a pull-request.

Comments (4)

  1. Log in to comment