Hi,
How to get all repositories with users and their permissions in bitbucket rest api 2.0?
1.I have tried for normal user credentials with url "https://api.bitbucket.org/2.0/repositories" returned empty response.
2.I have tried for normal user credentials with url "https://api.bitbucket.org/2.0/users/{MyUserName}/repositories" returned a response data of my 14 available repositories, but there is no details about users and their permissions.
So please suggest How to get all repositories with users and their permissions in bitbucket api 2.0.
Thanks,
Arunkarthik.V
I am getting the same issue, however, if you check the Network tab in Chrome, you will see the following call being made:
https://bitbucket.org/!api/2.0/repositories/<workspace id>?page=1&pagelen=25&sort=-updated_on&q=
And this actually retrieves the data. So the question is then, why can't we use api.bitbucket.org URL? Is the above Atlassian's private way of accessing or an undocumented way to get the repos?
OK, I just figured out the problem on my end. Instead of using Authorization in Header, I used Authentication. For this reason it was making unauthenticated calls and it couldn't retrieve anything. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.