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. Try it out 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 i.e., /projects/{projectId}/import
Project data to import
OK
"string"
Use the enhanced '/projects' api.
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 please refer to /projects/{projectId}/reports/{reportId}/generate to Generate a report. Refer /projects/{projectId}/reports/{reportId}/download to Download a report. 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. Try it out 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
{ }