I tried using the page filter to this end point and it doesn't work:
curl --request GET \ --url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits' \ --header 'Authorization: Bearer <access_token>'
Also the page filter doesn't work for this as well:
curl --request GET \ --url 'https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/refs/tags' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
G'day @Akshara Anilkumar
I have tested the PR commit endpoint and have no issue getting the response. Example curl I used:
curl -X GET -u <username>:<appPassword> https://api.bitbucket.org/2.0/repositories/<WorkspaceID>/<RepoName>/pullrequests/<PRNumber>/commits
The same goes for the "/refs/tags" endpoint. I wonder if your authorization is incorrect. Could you try using the above example with the App Password and see if you succeeded?
Regards,Syahrul
Hi @Syahrul
Yes that endpoint works but the issue is that the "page" filter doesn't work for those endpoints.
I am giving this endpoint: https://api.bitbucket.org/2.0/repositories/ck-mux-bitbucket-connector/bitbucket_repo/pullrequests/9/commits?page=1
Even for fetching the tags , its the same issue. The page filter doesn't work.
then the response is:
Hey @Akshara Anilkumar
Noted. Does your PR commits list have a next page if that's the case? Could you try fetching the information without the filter page parameter and scroll down to see if any second page exists?
Alternatively, you can use ?pagelen=100 to show the 100 objects in a single response.
Let me know how it goes.
Yes next page exist for PR commit. Currently that's how I am checking. This is just a feedback it would be great , if you could make the page filter work as things will be much easier to check the information.
It looks like you're new here. Sign in or register to get started.