Get Direct Sub-dependency Packages by Source Package
GET/code/api/v1/vulnerabilities/packages/:packageUuid/direct-sub-dependencies
Gets all the direct sub-dependencies packages of a specific package. The API accepts a package UUID. There is an option to get the packages sorted by their error count.
Request
Path Parameters
packageUuid stringrequired
Query Parameters
limit doublerequired
offset doublerequired
sort string
Possible values: [errors
]
Responses
- 200
- 422
Get direct sub-dependencies packages by source package.
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- Array [
- Array [
- ]
- Array [
- ]
- ]
directSubDependenciesPackages object[]required
errorCount double
fileMetadataId string
fileMetadataPath string
fixableErrorCount double
images string[]
isRoot boolean
licensesMetadata object[]
isOsi booleanrequired
isSpdx booleanrequired
license stringrequired
packageId stringrequired
packageLanguage string
packageLicenses string[]required
packageName stringrequired
packageVersion stringrequired
repository object
name string
owner string
sourcePackageIds object[]nullable
sourcePackageId stringrequired
hasNext booleanrequired
packageId stringrequired
{
"directSubDependenciesPackages": [
{
"errorCount": 0,
"fileMetadataId": "string",
"fileMetadataPath": "string",
"fixableErrorCount": 0,
"images": [
"string"
],
"isRoot": true,
"licensesMetadata": [
{
"isOsi": true,
"isSpdx": true,
"license": "string"
}
],
"packageId": "string",
"packageLanguage": "string",
"packageLicenses": [
"string"
],
"packageName": "string",
"packageVersion": "string",
"repository": {
"name": "string",
"owner": "string"
},
"sourcePackageIds": [
{
"sourcePackageId": "string"
}
]
}
],
"hasNext": true,
"packageId": "string"
}
{
"directSubDependenciesPackages": [
{
"fileMetadataId": "8d79e5a6-399b-42c3-8678-1fc165ca72c5",
"packageId": "b3f4f652-b71a-4b8b-8b7f-jd2k359k5d36",
"packageLicenses": [],
"packageName": "express",
"packageVersion": "4.17.1"
}
],
"hasNext": false,
"packageId": "b3f4f652-b71a-4b8b-8b7f-f812f80a7b43"
}
Request arguments validation error
Loading...