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"
---
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:
https://api.bitbucket.org/2.0/repositories/atlassian/aui/refs/branches?pagelen=10&page=1&q=name~"issue"
---
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 Maadani
Yes this works! Thanks
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.