mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 02:27:20 +00:00
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:
@ -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"`
|
||||
|
Reference in New Issue
Block a user