Repositories with same name clashing in gitlab registry API

I have two repositories with the same name, but in different groups i.e. on different paths:

my_group/services/core-service
my_group/infrastructure/charts/core-service

When I try to fetch list of projects from the API, i.e.

curl -H 'private-token: <token>' https://gitlab.com/api/v4/projects/?membership=true

I only get one of the projects (e.g. my_group/infrastructure/charts/core-service). This happens with two services that have same name of the repo, but lie on different paths! Is there a way around this? Why are names "shadowed" like this, even if repos are on different paths?

I've tried changing names of one of the repos, but the error persists, since the path has not been changed when the repo was renamed.

Edited Sep 16, 2019 by Petar Nikolovski
Assignee Loading
Time tracking Loading