Java and/or REST APIs to search code?

Anyone is aware of Java and/or REST APIs to search code in Bitbucket Server?
We saw the announcement for Bitbucket Cloud but not for Bitbucket Server… or we missed it?

We find the artifact bitbucket-seach which seems to contain the right methods, but we cannot use it at runtime due to java.lang. ClassNotFoundException throwed trying to instantiate com.atlassian.bitbucket.internal.search.search.SearchService.
Any advice?
Thanks in advance.
Cheers.

1 Like

OK, the undocumented REST API is /rest/search/latest/search.
Cheers.

1 Like

where can I find the options for this API?
I try to use postmane to call this POST api, but got nothing from the response json

where can I find the options for this API?

Java inspection of the artifact bitbucket-seach:wink: