Skip to content

Conversation

@tdruez
Copy link
Contributor

@tdruez tdruez commented Dec 5, 2024

For #104

REST API changes:

Endpoints:

  • Add vulnerabilities/ endpoint
  • Add risk_score and affected_by_vulnerabilities field in Package endpoint
  • Add vulnerability_analyses field in Product and ProductPackage endpoints

Filters:

  • Add is_vulnerable and affected_by filters in Product, Package, and ProductPackage endpoints
  • Add risk_score filter in Package endpoint

@DennisClark
Copy link
Member

@tdruez the new API stuff looks good on Staging Starship, and performance is quite zippy! No problems found, although I did wonder about the bullet point Add in Package endpoint in your comments which looks like a typo or something unfinished.

@pombredanne
Copy link
Member

FWIW, the current test failures are because of missing "vulnerability_analyses" which is weird, as this is a readonly field

@tdruez tdruez merged commit 9eb7fb7 into main Dec 9, 2024
3 checks passed
@tdruez tdruez deleted the 104-vulnerabilities-api branch December 9, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants