CAST HIGHLIGHT - SCA - How to list the development dependencies in the code?

Dev dependencies can be retrieved using an API endpoint . 

 

Details

 

With the below type of API endpoint, dependencies can be returned with dependency type (TEST, COMPILE, etc.).
 

Example:
{serverUrl}/WS/<project name>/project/search/dependencies?companySwitch={companyId}&name=log4j%3Alog4j&version=1.2.17
 
Output:
 
{
  "result": [
      {
          "semverExpression": "2.0.8",
          "dependentProject": "oro:oro",
          "matchingVersions": [
              "2.0.8"
          ],
          "type": "TEST",
          "optional": false,
          "licenses": [],
          "licenseIncompatibility": null,
          "matchingVersion": "2.0.8"
      },
     

 

NB : devDependencies are not extracted for NPM, please refer Automated Dependency Discovery & Supported Package Managers

Dev dependencies are packages or libraries that are not required for the application to run in production. They are only needed during the development and testing phases of a project. Seperation of dev dependencies from the production environment makes it more secure and boosts performance.

 

Highlight API's

Highlight REST API

 

Additional Resources

CAST Highlight Troubleshooting Guides

CAST Highlight Product Documentation

 

Ticket

46695

 

Have more questions? Submit a request

Comments

Powered by Zendesk