Generic packages endpoint to list packages
Context
You can use the GitLab Package Registry to publish and download generic package files. However, you can't list the versions unless you use the GitLab API.
Problem to solve
Deploy tokens do not have access to the GitLab API. So if generating a list of versions is part of your workflow, you cannot use Deploy tokens without giving API access, which is not desirable.
Workaround
As a workaround, you could use project access tokens or personal access tokens and the GitLab API for listing packages
Proposal
Add a new endpoint for generic packages that will allow you to return a list of generic packages published to your project or a list of versions associated with a specific package. A Developer+ should be able to list generic packages within their project using a job, personal or project access token, or a deploy token.
Return the same data currently returned by the GitLab API: https://docs.gitlab.com/ee/api/packages.html#list-packages
Metrics
- Measure (via Snowplow) the number of list events on GitLab.com.