Using Git API, Ability to Obtain list of projects within a namespace
Description
In the Git API, there is a "search" parameter within the requests/get function. However there is not a "namespace" field in the project record, only "namespace_with_name" and the search function does not currently search the namespace_with_name field. As a result, to get a list of projects within a namespace (with any visibility), the entire git repository must be inspected and the namespace_with_name field checked manually. This can be very time consuming for large repositories, especially since only 100 project records max can be obtained at a time from the server.
Proposal
Improve the search functionality within requests/get to search all project fields, especially the namespace_with_name fields. Ideally, a "namespace" field would be added (or exposed) to the project and that field would be searchable so that users do not have to manually parse the namespace out of the namespace_with_name record. This would greatly enhance the usability and functionality of the git API and would dramatically increase the speed of creating a list of projects within a namespace, which is a commonly performed end user function.
Links / references to Related Issues
Git API actually used to allow users to search for a specified name_space with /projects/:search, but that ability went away with Issue #8877 (closed). Issue #8877 (closed) attempted to remove redundant functionality, but in fact the search that was removed allowed namespace searches and the remaining search (/projects?search=x) now does not. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8877