Open kremerd opened 2 weeks ago
I've put out a PR for this feature. It required refactoring the existing code search related modules in addition to adding new files for the api route. I decided to duplicate much of the web/explore/code.go function and adapt it for the API rather than a large refactor.
Feature Description
One of Giteas best features is the blazing fast indexed full text search available at /explore/code. Unfortunately it seems that there is no REST API to access this feature programmatically. Such an API would be very useful to visualize results or present them in some other way.
Therefore I propose to introduce a new REST API
It should return a list of search results, containing at least the matched repository, file path, line number und line content
Screenshots
No response