Add package version api endpoints (#34173)

Fixes #33544

Adds two new api endpoints to list a versions of a package and to get
the latest version of a package by API.

⚠️ BREAKING ⚠️ 
the `size` field for this endpoint changes from `Size` to `size`.
This commit is contained in:
KN4CK3R authored and GitHub committed 2025-04-13 20:00:44 +00:00
1 parent 34349c085c
commit bec9233c29
5 files changed
+334 -80

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ type Package struct {
// PackageFile represents a package file
type PackageFile struct {
ID int64 `json:"id"`
Size int64
ID int64 `json:"id"`
Size int64 `json:"size"`
Name string `json:"name"`
HashMD5 string `json:"md5"`
HashSHA1 string `json:"sha1"`