This API is deprecated and new API is codeinsight/api/components/search.
OK
Bad request
Internal Server Error
{- "listId": 0,
- "componentId": 0,
- "encryption": false,
- "vulnerabilities": false,
- "forge": "string",
- "name": "string",
- "description": "string",
- "title": "string",
- "url": "string",
- "versions": [
- {
- "id": 0,
- "name": "string",
- "cves": [
- {
- "versionId": 0,
- "name": "string",
- "description": "string",
- "url": "string",
- "source": "string",
- "cvssv2Score": 0,
- "cvssv2Severity": "string",
- "cvssv3Score": 0,
- "cvssv3Severity": "string",
- "publishedDate": "string",
- "modifiedDate": "string"
}
]
}
], - "licenseRestFormat": [
- {
- "id": 0,
- "name": "string",
- "url": "string",
- "priority": 0
}
]
}
Imports project data for a given projectId. Only Project Owner and Analyst can import project data into a private project.
The Try It feature is not available for this API. This API can be tested using conventional REST API clients such as Postman or cURL
When calling this API from a REST client, you need to run curl as follows:
curl -X POST
"http://HOST:PORT/codeinsight/api/importer/importProjectData?projectId=PROJECT_ID&checkInventory=false&checkReviewed=false&createEmptyInventory=false&overwriteInventoryNotes=true"
-H "accept: application/json" -H "Authorization: Bearer JWT_TOKEN" -H
"content-type: application/octet-stream" --data-binary
"@path/filename.zip"
Since this is deprecated, you can find the new API under projects API, such as /projects/{projectId}/import.
Project data to import
OK
"string"
Use this API to create a Code Insight project.
To create a project the projectName field is required and other fields are optional. If the optional fields are left blank, the 'Project Default' values are applied for them.
OK
Error : error message
{- "projectName": "eportal",
- "projectType": "INVENTORY_ONLY | default: STANDARD",
- "description": "description",
- "projectFolderName": "eportal-v1",
- "policyProfileName": "Default License Policy Profile",
- "scanProfileName": "Basic Scan - Without CL | default: Standard Scan Profile",
- "ownerLogin": "admin",
- "risk": "HIGH | default: MEDIUM",
- "privateProject": "false",
- "autoPublish": "true",
- "markAssociatedFilesAsReviewed": "true"
}
0
This API is deprecated.
Generates reports (PROJECT, AUDIT, NOTICES, CUSTOM_REPORT) for a given projectId. For CUSTOM_REPORT, provide the name of the report. All project users including Observer, Reviewer and Analyst can generate reports for private projects.
The Try It feature is not available for this API. This API can be tested using conventional REST API clients such as postman or cURL.
When calling this API from a REST client, you need to redirect output to a zip file as follows:
curl -X GET
"http://HOST:PORT/codeinsight/api/project/generateReport?reportType=REPORT_TYPE&projectId=PROJECT_ID"
-H "accept: application/json" -H "Authorization: Bearer JWT_TOKEN" >
report.zip
OK
Bad request: No project with id x
{ }