New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dependency-tracker-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-tracker-client

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

dependency-tracker-client

DependencyTracker - the Ruby gem for the Dependency-Track API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 3.8.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build dependency-tracker-client.gemspec

Then either install the gem locally:

gem install ./dependency-tracker-client-1.0.0.gem

(for development, run gem install --dev ./dependency-tracker-client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'dependency-tracker-client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'dependency-tracker-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'dependency-tracker-client'

# Setup authorization
DependencyTracker.configure do |config|
  # Configure API key authorization: X-Api-Key
  config.api_key['X-Api-Key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-Api-Key'] = 'Bearer'
  # Configure Endpoint
  config.endpoint = "https://dependencytracker.local/api/"
end

api_instance = DependencyTracker::AnalysisApi.new
component = 'component_example' # String | The UUID of the component
vulnerability = 'vulnerability_example' # String | The UUID of the vulnerability
opts = {
  project: 'project_example' # String | The UUID of the project
}

begin
  #Retrieves an analysis trail
  result = api_instance.retrieve_analysis(component, vulnerability, opts)
  p result
rescue DependencyTracker::ApiError => e
  puts "Exception when calling AnalysisApi->retrieve_analysis: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost/api

ClassMethodHTTP requestDescription
DependencyTracker::AnalysisApiretrieve_analysisGET /v1/analysisRetrieves an analysis trail
DependencyTracker::AnalysisApiupdate_analysisPUT /v1/analysisRecords an analysis decision
DependencyTracker::AnalysisApiupdate_global_analysisPUT /v1/analysis/globalRecords an analysis decision
DependencyTracker::BadgeApiget_project_vulnerabilities_badgeGET /v1/badge/vulns/project/{name}/{version}Returns current metrics for a specific project
DependencyTracker::BadgeApiget_project_vulnerabilities_badge1GET /v1/badge/vulns/project/{uuid}Returns current metrics for a specific project
DependencyTracker::BomApiexport_component_as_cyclone_dxGET /v1/bom/cyclonedx/component/{uuid}Returns dependency metadata for a specific component in CycloneDX format
DependencyTracker::BomApiexport_components_as_cyclone_dxGET /v1/bom/cyclonedx/componentsReturns dependency metadata for all components in CycloneDX format
DependencyTracker::BomApiexport_project_as_cyclone_dxGET /v1/bom/cyclonedx/project/{uuid}Returns dependency metadata for a project in CycloneDX format
DependencyTracker::BomApiis_token_being_processedGET /v1/bom/token/{uuid}Determines if there are any tasks associated with the token that are being processed, or in the queue to be processed.
DependencyTracker::BomApiupload_bomPOST /v1/bomUpload a supported bill of material format document
DependencyTracker::BomApiupload_bom1PUT /v1/bomUpload a supported bill of material format document
DependencyTracker::CalculatorApiget_cvss_scoresGET /v1/calculator/cvssReturns the CVSS base score, impact sub-score and exploitability sub-score
DependencyTracker::ComponentApicreate_componentPUT /v1/componentCreates a new component
DependencyTracker::ComponentApidelete_componentDELETE /v1/component/{uuid}Deletes a component
DependencyTracker::ComponentApiget_all_componentsGET /v1/componentReturns a list of all components
DependencyTracker::ComponentApiget_component_by_hashGET /v1/component/hash/{hash}Returns a specific component
DependencyTracker::ComponentApiget_component_by_uuidGET /v1/component/{uuid}Returns a specific component
DependencyTracker::ComponentApiidentify_internal_componentsGET /v1/component/internal/identifyRequests the identification of internal components in the portfolio
DependencyTracker::ComponentApiupdate_componentPOST /v1/componentUpdates a component
DependencyTracker::ConfigPropertyApiget_config_propertiesGET /v1/configPropertyReturns a list of all ConfigProperties for the specified groupName
DependencyTracker::ConfigPropertyApiupdate_config_propertyPOST /v1/configPropertyUpdates a config property
DependencyTracker::ConfigPropertyApiupdate_config_property1POST /v1/configProperty/aggregateUpdates an array of config properties
DependencyTracker::CweApiget_cweGET /v1/cwe/{cweId}Returns a specific CWE
DependencyTracker::CweApiget_cwesGET /v1/cweReturns a list of all CWEs
DependencyTracker::DefaultApiadd_project_to_rulePOST /v1/notification/rule/{ruleUuid}/project/{projectUuid}Adds a project to a notification rule
DependencyTracker::DefaultApicreate_notification_rulePUT /v1/notification/ruleCreates a new notification rule
DependencyTracker::DefaultApidelete_notification_ruleDELETE /v1/notification/ruleDeletes a notification rule
DependencyTracker::DefaultApiget_all_notification_publishersGET /v1/notification/publisherReturns a list of all notification publishers
DependencyTracker::DefaultApiget_all_notification_rulesGET /v1/notification/ruleReturns a list of all notification rules
DependencyTracker::DefaultApiremove_project_from_ruleDELETE /v1/notification/rule/{ruleUuid}/project/{projectUuid}Removes a project from a notification rule
DependencyTracker::DefaultApitest_smtp_publisher_configPOST /v1/notification/publisher/test/smtpDispatches a SMTP notification test
DependencyTracker::DefaultApiupdate_notification_rulePOST /v1/notification/ruleUpdates a notification rule
DependencyTracker::DependencyApiadd_dependencyPUT /v1/dependencyAdds one or more components as a dependency to a project
DependencyTracker::DependencyApiget_dependencies_by_componentGET /v1/dependency/component/{uuid}Returns a list of all dependencies for a specific component
DependencyTracker::DependencyApiget_dependencies_by_projectGET /v1/dependency/project/{uuid}Returns a list of all dependencies for a specific project
DependencyTracker::DependencyApiremove_dependencyDELETE /v1/dependencyRemoves a component as a dependency from a project
DependencyTracker::FindingApiexport_findings_by_projectGET /v1/finding/project/{uuid}/exportReturns a the findings for the specified project as FPF
DependencyTracker::FindingApiget_findings_by_projectGET /v1/finding/project/{uuid}Returns a list of all findings for a specific project
DependencyTracker::LdapApiadd_mappingPUT /v1/ldap/mappingAdds a mapping
DependencyTracker::LdapApidelete_mappingDELETE /v1/ldap/mapping/{uuid}Removes a mapping
DependencyTracker::LdapApiretrieve_ldap_groupsGET /v1/ldap/groupsReturns the DNs of all accessible groups within the directory
DependencyTracker::LdapApiretrieve_ldap_groups1GET /v1/ldap/team/{uuid}Returns the DNs of all groups mapped to the specified team
DependencyTracker::LicenseApiget_licenseGET /v1/license/{licenseId}Returns a specific license
DependencyTracker::LicenseApiget_license_listingGET /v1/license/conciseReturns a concise listing of all licenses
DependencyTracker::LicenseApiget_licensesGET /v1/licenseReturns a list of all licenses with complete metadata for each license
DependencyTracker::MetricsApiget_component_current_metricsGET /v1/metrics/component/{uuid}/currentReturns current metrics for a specific component
DependencyTracker::MetricsApiget_component_metrics_sinceGET /v1/metrics/component/{uuid}/since/{date}Returns historical metrics for a specific component from a specific date
DependencyTracker::MetricsApiget_component_metrics_x_daysGET /v1/metrics/component/{uuid}/days/{days}Returns X days of historical metrics for a specific component
DependencyTracker::MetricsApiget_dependency_current_metricsGET /v1/metrics/project/{projectUuid}/component/{componentUuid}/currentReturns current metrics for a specific dependency
DependencyTracker::MetricsApiget_dependency_metrics_sinceGET /v1/metrics/project/{projectUuid}/component/{componentUuid}/since/{date}Returns historical metrics for a specific dependency from a specific date
DependencyTracker::MetricsApiget_dependency_metrics_x_daysGET /v1/metrics/project/{projectUuid}/component/{componentUuid}/days/{days}Returns X days of historical metrics for a specific dependency
DependencyTracker::MetricsApiget_portfolio_current_metricsGET /v1/metrics/portfolio/currentReturns current metrics for the entire portfolio
DependencyTracker::MetricsApiget_portfolio_metrics_sinceGET /v1/metrics/portfolio/since/{date}Returns historical metrics for the entire portfolio from a specific date
DependencyTracker::MetricsApiget_portfolio_metrics_x_daysGET /v1/metrics/portfolio/{days}/daysReturns X days of historical metrics for the entire portfolio
DependencyTracker::MetricsApiget_project_current_metricsGET /v1/metrics/project/{uuid}/currentReturns current metrics for a specific project
DependencyTracker::MetricsApiget_project_metrics_sinceGET /v1/metrics/project/{uuid}/since/{date}Returns historical metrics for a specific project from a specific date
DependencyTracker::MetricsApiget_project_metrics_x_daysGET /v1/metrics/project/{uuid}/days/{days}Returns X days of historical metrics for a specific project
DependencyTracker::MetricsApiget_vulnerability_metricsGET /v1/metrics/vulnerabilityReturns the sum of all vulnerabilities in the database by year and month
DependencyTracker::MetricsApirefresh_component_metricsGET /v1/metrics/component/{uuid}/refreshRequests a refresh of a specific components metrics
DependencyTracker::MetricsApirefresh_dependency_metricsGET /v1/metrics/project/{projectUuid}/component/{componentUuid}/refreshRequests a refresh of a specific dependency metrics
DependencyTracker::MetricsApirefresh_portfolio_metricsGET /v1/metrics/portfolio/refreshRequests a refresh of the portfolio metrics
DependencyTracker::MetricsApirefresh_project_metricsGET /v1/metrics/project/{uuid}/refreshRequests a refresh of a specific projects metrics
DependencyTracker::PermissionApiadd_permission_to_teamPOST /v1/permission/{permission}/team/{uuid}Adds the permission to the specified username.
DependencyTracker::PermissionApiadd_permission_to_userPOST /v1/permission/{permission}/user/{username}Adds the permission to the specified username.
DependencyTracker::PermissionApiget_all_permissionsGET /v1/permissionReturns a list of all permissions
DependencyTracker::PermissionApiremove_permission_from_teamDELETE /v1/permission/{permission}/team/{uuid}Removes the permission from the team.
DependencyTracker::PermissionApiremove_permission_from_userDELETE /v1/permission/{permission}/user/{username}Removes the permission from the user.
DependencyTracker::ProjectApiclone_projectPUT /v1/project/cloneClones a project
DependencyTracker::ProjectApicreate_projectPUT /v1/projectCreates a new project
DependencyTracker::ProjectApidelete_projectDELETE /v1/project/{uuid}Deletes a project
DependencyTracker::ProjectApiget_projectGET /v1/project/lookupReturns a specific project by its name and version
DependencyTracker::ProjectApiget_project1GET /v1/project/{uuid}Returns a specific project
DependencyTracker::ProjectApiget_projectsGET /v1/projectReturns a list of all projects
DependencyTracker::ProjectApiget_projects_by_tagGET /v1/project/tag/{tag}Returns a list of all projects by tag
DependencyTracker::ProjectApiupdate_projectPOST /v1/projectUpdates a project
DependencyTracker::ProjectPropertyApicreate_propertyPUT /v1/project/{uuid}/propertyCreates a new project property
DependencyTracker::ProjectPropertyApidelete_propertyDELETE /v1/project/{uuid}/propertyDeletes a config property
DependencyTracker::ProjectPropertyApiget_propertiesGET /v1/project/{uuid}/propertyReturns a list of all ProjectProperties for the specified project
DependencyTracker::ProjectPropertyApiupdate_propertyPOST /v1/project/{uuid}/propertyUpdates a project property
DependencyTracker::RepositoryApicreate_repositoryPUT /v1/repositoryCreates a new repository
DependencyTracker::RepositoryApidelete_repositoryDELETE /v1/repository/{uuid}Deletes a repository
DependencyTracker::RepositoryApiget_repositoriesGET /v1/repositoryReturns a list of all repositories
DependencyTracker::RepositoryApiget_repositories_by_typeGET /v1/repository/{type}Returns repositories that support the specific type
DependencyTracker::RepositoryApiget_repository_meta_componentGET /v1/repository/latestAttempts to resolve the latest version of the component available in the configured repositories
DependencyTracker::RepositoryApiupdate_repositoryPOST /v1/repositoryUpdates a repository
DependencyTracker::SearchApisearchGET /v1/search/{query}Processes and returns search results
DependencyTracker::SearchApisearch_via_query_stringGET /v1/searchProcesses and returns search results
DependencyTracker::TeamApicreate_teamPUT /v1/teamCreates a new team along with an associated API key
DependencyTracker::TeamApidelete_api_keyDELETE /v1/team/key/{apikey}Deletes the specified API key
DependencyTracker::TeamApidelete_teamDELETE /v1/teamDeletes a team
DependencyTracker::TeamApigenerate_api_keyPUT /v1/team/{uuid}/keyGenerates an API key and returns its value
DependencyTracker::TeamApiget_teamGET /v1/team/{uuid}Returns a specific team
DependencyTracker::TeamApiget_teamsGET /v1/teamReturns a list of all teams
DependencyTracker::TeamApiregenerate_api_keyPOST /v1/team/key/{apikey}Regenerates an API key by removing the specified key, generating a new one and returning its value
DependencyTracker::TeamApiupdate_teamPOST /v1/teamUpdates a team's fields including
DependencyTracker::UserApiadd_team_to_userPOST /v1/user/{username}/membershipAdds the username to the specified team.
DependencyTracker::UserApicreate_ldap_userPUT /v1/user/ldapCreates a new user that references an existing LDAP object.
DependencyTracker::UserApicreate_managed_userPUT /v1/user/managedCreates a new user.
DependencyTracker::UserApidelete_ldap_userDELETE /v1/user/ldapDeletes a user.
DependencyTracker::UserApidelete_managed_userDELETE /v1/user/managedDeletes a user.
DependencyTracker::UserApiforce_change_passwordPOST /v1/user/forceChangePasswordAsserts login credentials and upon successful authentication, verifies passwords match and changes users password
DependencyTracker::UserApiget_ldap_usersGET /v1/user/ldapReturns a list of all LDAP users
DependencyTracker::UserApiget_managed_usersGET /v1/user/managedReturns a list of all managed users
DependencyTracker::UserApiget_selfGET /v1/user/selfReturns information about the current logged in user.
DependencyTracker::UserApiremove_team_from_userDELETE /v1/user/{username}/membershipRemoves the username from the specified team.
DependencyTracker::UserApiupdate_managed_userPOST /v1/user/managedUpdates a managed user.
DependencyTracker::UserApiupdate_selfPOST /v1/user/selfUpdates information about the current logged in user.
DependencyTracker::UserApivalidate_credentialsPOST /v1/user/loginAssert login credentials
DependencyTracker::VersionApiget_versionGET /versionReturns application version information
DependencyTracker::VulnerabilityApiassign_vulnerabilityPOST /v1/vulnerability/source/{source}/vuln/{vulnId}/component/{component}Assigns a vulnerability to a component
DependencyTracker::VulnerabilityApiassign_vulnerability1POST /v1/vulnerability/{uuid}/component/{component}Assigns a vulnerability to a component
DependencyTracker::VulnerabilityApicreate_vulnerabilityPUT /v1/vulnerabilityCreates a new vulnerability
DependencyTracker::VulnerabilityApiget_affected_projectGET /v1/vulnerability/source/{source}/vuln/{vuln}/projectsReturns a list of all projects affected by a specific vulnerability
DependencyTracker::VulnerabilityApiget_all_vulnerabilitiesGET /v1/vulnerabilityReturns a list of all vulnerabilities
DependencyTracker::VulnerabilityApiget_vulnerabilities_by_componentGET /v1/vulnerability/component/{ident}Returns a list of all vulnerabilities for a specific component
DependencyTracker::VulnerabilityApiget_vulnerabilities_by_projectGET /v1/vulnerability/project/{uuid}Returns a list of all vulnerabilities for a specific project
DependencyTracker::VulnerabilityApiget_vulnerability_by_uuidGET /v1/vulnerability/{uuid}Returns a specific vulnerability
DependencyTracker::VulnerabilityApiget_vulnerability_by_vuln_idGET /v1/vulnerability/source/{source}/vuln/{vuln}Returns a specific vulnerability
DependencyTracker::VulnerabilityApiunassign_vulnerabilityDELETE /v1/vulnerability/source/{source}/vuln/{vulnId}/component/{component}Removes assignment of a vulnerability from a component
DependencyTracker::VulnerabilityApiunassign_vulnerability1DELETE /v1/vulnerability/{uuid}/component/{component}Removes assignment of a vulnerability from a component
DependencyTracker::VulnerabilityApiupdate_vulnerabilityPOST /v1/vulnerabilityUpdates an internal vulnerability

Documentation for Models

Documentation for Authorization

X-Api-Key

  • Type: API key
  • API key parameter name: X-Api-Key
  • Location: HTTP header

FAQs

Package last updated on 19 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc