Closed evamaxfield closed 1 month ago
Nothing wrong, I think you found both a bug and a feature! I’ll get both of those sorted out for you today
Deploying a fix and a new endpoint for you now.
The new endpoint is: /registries/{registry}/lookup
to avoid clashing with existing packages called lookup
(like https://packages.ecosyste.ms/api/v1/registries/pypi.org/packages/lookup)
and the ecosystem
filter should work for when using repository_url
now as well: https://packages.ecosyste.ms/api/v1/packages/lookup?repository_url=https%3A%2F%2Fgithub.com%2Fallencellmodeling%2Faicsimageio&ecosystem=pypi
thanks for reporting the bugs!
Wow! Thanks so much for the fast turn around. Much appreciated ❤️
Goal
Find a package from a repository url + registry combination
Current Options
Currently, there is the basic
/packages/lookup
API route that supports adding both repository_url and ecosystem parameters, however theecosystem
parameter isn't being respected.For example, if I try to find: https://github.com/allencellmodeling/aicsimageio
Using:
The first package I receive in the list is a go package which is explicitly what I wanted to filter out.
Let me know if I am doing something wrong with my query but I see three options for my current goal:
/packages/lookup
query respect theecosystem
parameter/registries/{registry}/packages/lookup
route