API to list projects for a user and/or within a namespace
Description
Right now there is no straightforward way to list, via the API, all projects within a namespace.
If you know that a namespace is a group, you can list the group's projects:
GET /groups/:id/projects
But, if the namespace is a user, then you are out of luck - There seems to be no way to simply list all projects under a user namespace.
This does not exist:
GET /users/:id/projects
You can search, but this does not limit the search query to match the namespace. E.g. searching for jreinhart
would yield both jreinhart/foo
and bar/jreinhart
projects. Also, adding a trailing slash e.g. /projects?search=jreinhart%2f
does not work (it yields nothing).
Proposal
An API to get all projects within a namespace (be it a user or a group):
GET /namespaces/:id/projects