Skip to main content

New APIs

The following new API has been added in this release:

ResourceAPI Name/EndpointMethodDescription
Project APIImport Sbom /projects/{projectId}/importSbomPOSTEnables you to import an SBOM (Software Package Data Exchange) file into a specified project. This API can only be invoked using the standard REST API clients such as Postman or cURL. To import an SBOM file via this API, use a curl command in the following format: curl -H "Authorization:Bearer % jwt %" \ -F sbomFile=@" fileToImport .json;type=application/ json" \ http://localhost:8888/codeinsight/api/projects/% projectId %/importSbom Consider the following while using the above curl command: Replace jwt with a valid authorization token. Replace projectId with the ID of the target project. Replace fileToImport.json with the SBOM file name that you want to import. Only users with the Project Owner and Analyst role can invoke the API when the project is private. The SBOM data to be imported must be in one of the following required file formats: .json—Complies with either the CycloneDX or SPDX (Software Package Data Exchange) standards. .xml—Complies with the CycloneDX standard. .spdx—Complies with the SPDX (Software Package Data Exchange) standard.