Improve namespaces and users API
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Initial description take from gitlab-ce!16308:
We should improve API for namespaces and users management:
-
Present
user_idwith namespace's details, when namespace is of kinduser. While using API I found that the first thing I do after checking information about namespace is to find the user ID related to this namespace (by running another request to users API). -
Allows to list projects of selected namespace. Currently we can find namespace by
idbut there is no API that would list all projects of given namespace. -
Allows to use
usernameas the replacement ofIDwhen using users API. Currently we could do - for example -GET /api/v4/users/USERNAME_OR_ID/projectsbut we couldn't doGET /api/v4/users/USERNAME_OR_IDbut onlyGET /api/v4/users/ID. This makes API inconsistent.
These three problems were found when working on https://gitlab.com/gitlab-org/ci-cd/ops-helper