Hi @amy.j ,
I don't think the API has changed, but I suspect it has something to do with multi-file packages, and the way that the aggregate result is presented.
But I'd like to confirm that. Can you run the following script using the package you're looking at, and share the resulting output?
import requests
import os
BASE_URL = "https://proget.example.com"
API_KEY = os.environ.get("PROGET_API_KEY")
FEED = "pypi-proxy-test"
package = "charset_normalizer"
version = "3.5.1"
headers = {
"X-ApiKey": API_KEY
}
metadata_response = requests.get(
f"{BASE_URL}/api/packages/{FEED}/metadata?name={package}&version={version}",
headers=headers,
)
print(metadata_response.json())
for artifact in metadata_response.json()["artifacts"]:
print(artifact["qualifier"])
response = requests.post(
f"{BASE_URL}/api/packages/{FEED}/audit?name={package}&version={version}&qualifier={artifact['qualifier']}",
headers=headers,
)
print(response.json())
Thanks,
Alana