I am using the next endpoint to search for the branches, GET /2.0/repositories/{workspace}/{repo_slug}/refs/branches.
Separately both the pagination and query searching work, but when combined an error is return. The error says "Invalid Page"
List Branches DOCS
---
Steps to reproduce ( using the example from the DOCS )
1. The docs provide the next url as an example ( I have just updated the pagelen and page to return the first 10 results ):
https://api.bitbucket.org/2.0/repositories/atlassian/aui/refs/branches?pagelen=10&page=1
2. If we add a query to search by name the error will be returned:
https://api.bitbucket.org/2.0/repositories/atlassian/aui/refs/branches?pagelen=10&page=1&q=name~"issue"
3. If we remove the `page` query parameter, the data will be returned:
So it looks like there is some issue with the "page" query parameter?Or am I doing something wrong?
Hey @Milos Petrovic
Try removing the `page` parameter from the request and use the returned URL from the `next` attribute in the response.
Hey @Erez MaadaniYes this works! Thanks
It looks like you're new here. Sign in or register to get started.