I am using bitbucket server version 5.9.
The 2.0 api was released in 2013. (See Blog post)
A search in the documentation for server gives me no meaningful information.
The url showcased in the blogpost corresponds to api.server.com/api/2.0/... but the URL for rest api for bitbucket server is: server.com/rest/api/1.0
So I tried if "server.com/rest/api/2.0" exists, but I got no luck so far (404 error)
Is there an alternative to 2.0 repositories API? I want to use semantic-release and have a bitbucket trigger to push the CI build with the git tag. But bitbucket support is really poor!
Please document this ASAP or tell me how to enable this.
Hi Martin,
Welcome to the community!
Excellent question. The bog post you linked is specifically for Bitbucket Cloud (bitbucket.org), and unfortunately does not apply to Bitbucket Server.
It's important to understand Bitbucket Cloud and Server are separate products; the features and APIs are not identical.
Having said that, most (if not all) of the features listed in that blog post are available in Bitbucket Server - albeit in a slightly different format.
Is there an alternative to 2.0 repositories API?
Please have a look at the REST API documentation for Bitbucket Server, especially repositories.
I hope this helps, cheers!
Please have a look at the REST API documentation for Bitbucket Server, especially repositories.
That particular link only contains references to REST API v1.0 - so does Bitbucket Server support v2.0 or not?
I need this in order to get more detailed info for tags - something that is not in v1.0...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Henk,
Thank you for your reply.
That particular link only contains references to REST API v1.0 - so does Bitbucket Server support v2.0 or not?
There is no v2.0 for Bitbucket Server.
Please note: Comparing REST API versions between Bitbucket Cloud and Bitbucket Server is comparing apples and oranges. They are separate products, each with their own distinct REST API and versioning. Bitbucket Cloud REST v1.0 is completely different from Bitbucket Server REST v1.0.
I need this in order to get more detailed info for tags - something that is not in v1.0...
What information for tags are you looking for specifically? Which version of Bitbucket Server are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
we are using BitBucket Server (v5.16.2) and are looking for some advanced features of REST API. Specifically:
Are there any plans to add these (and other advanced functions) to BitBucket Server REST API? Probably there is some workaround to achieve the same result without REST?
Thanks in advance for any help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.