In gitlab's doc, there is list projects API,
however I wonder how to use the search
field.
I've tried with http://GITLAB_API/projects?search=QUERY&private_token=xxx
, and it successfully returned projects those contain QUERY
in their names, but I want to know if there is advanced search criteria available? For example, I want to get projects under certain namespace, is it possible to filter those projects through this api? Or any api else?
Thank you!
Advanced Search is based on Elasticsearch, a purpose-built full-text search engine you can horizontally scale to get results in up to a second in most cases. You can find code you want to update in all projects at once to save maintenance time and promote innersourcing. You can use Advanced Search in: Projects.
GitLab allows users with the Owner role to set a project's or group's visibility as: Public. Internal. Private.
It appears to search for projects that have a name, path, namespace, or description that match your query string. Sadly, it doesn't appear to be anything fancier.
Tracing the source code of 8.3 stable: lib/api/projects.rb calls a filter_projects
helper in lib/api/helpers.rb which calls search
in app/models/project.rb.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With