Skip to main content

Get Packages Related to a File



Gets all the Packages related to a specific file based on pagination Pagination is required - this endpoint must use the pagination.validate The API accepts a file metadata UUID. There is an option to get the packages sorted by their error count. root-only query parameter is optional - if true, returns only root level packages, in a sense of the file's dependency tree


Path Parameters

    fileMetadataId stringrequired

Query Parameters

    limit doublerequired
    offset doublerequired
    sort string

    Possible values: [errors]

    root-only boolean


get packages by file

    fileMetadataId stringrequired
    hasNext booleanrequired
    packages object[]required
  • Array [
  • errorCount double
    fileMetadataId string
    fileMetadataPath string
    fixableErrorCount double
    images string[]
    isRoot boolean
    licensesMetadata object[]
  • Array [
  • 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
  • Array [
  • sourcePackageId stringrequired
  • ]
  • ]