Skip to content

Commit 00cc421

Browse files
author
Shane Wright
committed
updates to reflect API URL and parameter renaming
1 parent 8569896 commit 00cc421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/client/parse_spdx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ def upload_sbom_file(filename, project, version):
359359
# No match: None
360360
def find_comp_in_kb(extref):
361361
params = {
362-
'packageUrl': extref
362+
'purl': extref
363363
}
364-
for result in bd.get_items("/api/search/purl-components", params=params):
364+
for result in bd.get_items("/api/search/kb-purl-component", params=params):
365365
# Should be exactly 1 match when successful
366366
return(result)
367367

0 commit comments

Comments
 (0)