Skip to content

Add the ability to download generic package files by unique file ID

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Currently, the generic package registry only allows downloading files by filename, which retrieves the most recent version of that file. This is limiting for users who need to access previous versions of files with the same name.

GET /projects/:id/packages/generic/:package_name/:package_version/:file_name

While this works well for most use cases, when multiple files with identical names are uploaded (even with different package versions), only the most recent file is accessible through this endpoint.

I propose adding the ability to download generic package files by their unique file ID. This would enable access to any version of a file, not just the latest one.

Proposed Solution

Add a new endpoint:

GET /projects/:id/packages/generic/files/:file_id

Where :file_id is the unique ID of the package file as shown in the package UI or API response.

Edited by 🤖 GitLab Bot 🤖