I need to run a code search report across many projects/repositories hosted on Bitbucket Server.
The browser interface is not helpful for this task as it pages the results and requires manual scrolling to load the (many) results.
Found a REST API at /rest/search/1.0/search (marked private), but there's no indication how to construct the POST payload with code search terms.
Has anyone found a way to use this (I know, private) API?
Alternatively, is there a way to query the bundled elasticsearch server directly from the command line?