Internal API for fetching custom email templates and images from core server
Code Insight REST API Documentation (v1)
The Code Insight REST APIs provide a standardized interface for interacting with the application.
An authorization JWT token must be included in the HTTP Authorization header using the Bearer schema. The token can be obtained from the Code Insight Web UI under the Preferences menu. To set the token, click the Authorize button below on the right, enter the JWT token in the Value field, then click Authorize and close the dialog. Once authorized, the token will be automatically included in the HTTP Authorization header for all API requests made through the Swagger UI.
Note: If accessing the REST APIs through external tools such as curl or Postman, include the token manually in the HTTP header using the following format: Authorization: Bearer JWT_TOKEN. "Bearer" must precede the actual JWT token value.
Request
Returns a Delta list of inventory after latest scan and relevant details for a given project. All project users including Observer, Reviewer and Analyst can view project inventory of private/public projects.
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/project/inventoryDeltaFromLastScan/{projectId}
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/project/inventoryDeltaFromLastScan/{projectId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://codeinsightapi.redocly.app/_mock/swagger/project/inventoryDeltaFromLastScan/1?inventoryUpdatedType=All&size=100&page=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/project/id
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/project/id
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://codeinsightapi.redocly.app/_mock/swagger/project/id?projectName=string' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Request
Returns a list of inventory and inventory details for a given project; includes a flag for a short/long version. All project users including Observer, Reviewer and Analyst can view project inventory of private projects.
If true, then only published inventory items are returned; if false, then only not-published inventory items are returned;; if all, then all inventory items are returned
return items based on the reviewStatus which we selected. Ex: if reviewStatus is APPROVED then only APPROVED items returned
return items based the alert status selected. If alert status selected as OPEN then only open alerts returned
If true, display the associated files to an Inventory(Default is true)
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/project/inventory/{projectId}
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/project/inventory/{projectId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://codeinsightapi.redocly.app/_mock/swagger/project/inventory/1?skipVulnerabilities=false&published=true&vendor=string&product=string&size=100&page=1&reviewStatus=READY_TO_REVIEW&alerts=OPEN&includeFiles=true&includeCopyrights=false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
link type
distribution type
As found license text
{ "name": "git", "priority": { "id": 0, "type": "INVENTORY_STATUS", "name": "string", "description": "string", "isDefault": true }, "id": 1, "owner": "antlr", "published": true, "partOfProduct": "Unknown", "linking": "Unknown", "inventoryType": "Work in Progress", "modified": "Unknown", "encrypted": "Unknown", "usageText": "usage", "distributed": "Unknown", "repositoryItem": { "id": 0, "item": { … }, "createdBy": "string", "createDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "license": 1, "title": "string", "inUse": true, "componentVersion": { … }, "component": { … } }, "noticeText": "Notice text", "disclosed": true, "confidence": "1", "priorityId": 0, "copyrightText": "string", "projectId": 1, "provenanceId": 0, "createDate": "2019-08-24T14:15:22Z", "updateDate": "2019-08-24T14:15:22Z", "links": [ { … } ], "license": 1, "auditorReviewNotes": "good to go", "remediationNotes": "update this immediately", "workflowURL": "string", "associatedComponentVersion": { "id": 0, "type": "Component", "displayName": "string", "deprecated": true, "versionLicenses": [ … ], "vulnerabilities": [ … ], "purl": "string", "versionName": "string", "sortedLicenses": [ … ], "customVulnerabilities": [ … ], "custom": true, "displayVersionName": "string", "licenses": [ … ], "component": { … } }, "associatedComponent": { "name": "string", "id": 0, "default": true, "displayName": "string", "componentCPEs": [ … ], "externalId": "string", "componentForge": { … }, "lastUpdateDate": "2019-08-24T14:15:22Z", "registeredDate": "2019-08-24T14:15:22Z", "encryption": true, "updatedBy": "string", "createdBy": "string", "modified": true, "custom": true, "title": "string", "sortedVersions": [ … ], "flagMask": 0, "sourceRepoUrl": "string", "popularity": 0, "sortedLicenses": [ … ], "description": "string", "versions": [ … ], "licenses": [ … ], "url": "string", "type": "Component" }, "associatedLicense": 1, "closedVulnerabilityAlerts": [ { … } ], "vulnerabilityAlerts": [ { … } ], "openVulnerabilityAlerts": [ { … } ], "autoStatus": "DRAFT", "systemGenerated": true, "statusPolicyId": 0, "parentGroupId": 0, "rejectedByUpdate": true, "publishedDate": "2019-08-24T14:15:22Z", "licenseDetectionMethod": "string", "userUpdatedStatus": "string", "autoDetectionNotes": "Note", "description": "Description", "status": "UNUSED0", "asFoundLicenseText": "Sample from file LICENSE.txt in file ePortal-2.0", "url": "http://www.antlr.org", "fileCount": 2000, "dependencyScope": "string" }