chg: get_vendor_products is finally on /api/browse/vendor in order to stay compatible with cve-search. this was a bad change

This commit is contained in:
Cédric Bonhomme 2024-11-28 11:29:18 +01:00
parent ac8bccd8f3
commit 9f012fa85a
Signed by untrusted user who does not match committer: cedric
GPG key ID: A1CB94DE57B7A70D

View file

@ -133,7 +133,7 @@ class PyVulnerabilityLookup():
:params vendor: A vendor owning products (must be in the known vendor list) :params vendor: A vendor owning products (must be in the known vendor list)
''' '''
r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'vulnerability', 'browse', vendor)))) r = self.session.get(urljoin(self.root_url, str(PurePosixPath('api', 'browse', vendor))))
return r.json() return r.json()
def get_vendor_product_vulnerabilities(self, vendor: str, product: str) -> list[str]: def get_vendor_product_vulnerabilities(self, vendor: str, product: str) -> list[str]: