go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.37k stars 5.52k forks source link

API: Add package homepage #28027

Open don-rumata opened 1 year ago

don-rumata commented 1 year ago

Feature Description

Hi!

Can you add a field with the package homepage to the API output?

LC_ALL=C aptitude show mc | grep -i homepage:

Screenshots

No response

KN4CK3R commented 1 year ago

What API are you talking about?

don-rumata commented 1 year ago

This: http://<my-gitea-server>/api/v1/packages/<my-user>

KN4CK3R commented 1 year ago

At the moment this endpoint just lists basic infos about a package. For your request we would need to add the package type depending metadata. And then there would be no guarantee that the homepage field has the same name for every package type.

don-rumata commented 1 year ago

Hmmm... Why would a package like jc or deltachat-desktop have a different homepage field?

don-rumata commented 1 year ago

we would need to add the package type depending metadata

https://docs.gitea.com/api/1.21/#tag/package/operation/getPackage

Isn't that it?