Skip to content

feat(rest): Get file info from hash

Gaurav Mishra requested to merge test/wrong-license into master

Get following file info from hash:

  • Scanner findings
  • License conclusions
  • Upload ID if hash represents a package
  • Main license if hash represents a package

The query can be done with any combination of MD5, SHA1 and SHA256 checksums.

There are some additional changes in how hash and license findings and conclusions are structured. It results in two new models Hash and Findings. The checksum returned by GET /uploads endpoint has been replaced with hash model and the license findings returned by GET /uploads/{id}/licenses has been replaced with findings model.

These two changes are breaking changes for existing REST API clients, thus the API version has been increased to 1.1.0.

Signed-off-by: Gaurav Mishra mishra.gaurav@siemens.com

Merge request reports

Loading