I am using API 2.0 to search files where needed search query is used.
I am using this URL for requests to API:
"api.bitbucket.org/2.0/workspaces/{workspace}/search/code?search_query='{query}'&pagelen=500";
All works well. But it does not search on specified branch. When I mention the branch name, then results are the same, but it should not. For branch name in query I add this to url
"&ref={branch}"
How can I mention the branch name in search code query?