Details
-
Suggestion
-
Resolution: Won't Fix
Description
Currently, to have the latest commit in the main branch you have to make 2 requests.
This can be improved for the REST API users if the main-branch would be part of the metadata of a repository.
This would also make the API symmetric with the "PUT repository updates":
{{PUT https://api.bitbucket.org/1.0/repositories/
The following becomes obsolete:
{{GET https://api.bitbucket.org/1.0/repositories/{accountname}
/
{repo_slug}/main-branch}}And the following returns also main_branch in the metadata:
{{GET https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}
}}