-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow clients to send a realistically large list of packages to query for CVEs Fixes gardenlinux/glvd#99
- Loading branch information
Showing
5 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
api-examples/Get CVEs by Gardenlinux Version Packages PUT.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
meta { | ||
name: Get CVEs by Gardenlinux Version Packages PUT | ||
type: http | ||
seq: 8 | ||
} | ||
|
||
put { | ||
url: {{schema_hostname_port}}/v1/cves/1592.0/packages | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
["vim","bash","python3","curl"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.gardenlinux.glvd; | ||
|
||
import java.util.List; | ||
|
||
public class PackageList { | ||
|
||
private List<String> packageNames; | ||
|
||
public PackageList() { | ||
} | ||
|
||
public PackageList(List<String> packageNames) { | ||
this.packageNames = packageNames; | ||
} | ||
|
||
public List<String> getPackageNames() { | ||
return packageNames; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.join(",", packageNames); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters