List Defect Groups By Link
Request
GET
https://appsec.sourcecraft.tech/v1/defect-groups/by-link
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: |
|
identifier |
Type: string Identifier of the link as it is stored: a platform ID for SOURCECRAFT_ISSUE and SOURCECRAFT_PR, an HTTPS URL for the other types Pattern: Example: |
|
linkType |
Type: LinkType Link type to search by: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR or YA_TRACKER Enum: |
|
pageSize |
Type: integer Pagination page size, maximum 250, default: 50 defect groups Default: Min value: Max value: |
|
pageToken |
Type: string Page token for cursor-based pagination. Omit for first page, use nextPageToken (from the response) to request subsequent pages. Default: `` Example: |
LinkType
Type: string
Enum: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR, YA_TRACKER
Responses
200 OK
OK
Body
application/json
{
"data": [
{
"id": 0,
"ruleName": "example",
"codeBlock": "example",
"fileName": "example",
"latestCommit": "example",
"latestTimeFound": 0,
"gitRepo": "example",
"status": 0,
"severity": 0,
"cvssScore": 0.5,
"engine": "example",
"neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
"neuroScore": 0,
"firstCommit": "example",
"firstTimeFound": 0,
"uuid": null,
"ruleId": "example",
"findingsCount": 0,
"publicId": 0,
"fixOperationUuid": null,
"engineType": 0,
"startLine": 0,
"endLine": 0,
"startColumn": 0,
"endColumn": 0,
"links": [
{
"type": "EXTERNAL_URL",
"url": "example"
}
]
}
],
"nextPageToken": "example",
"totalSize": 0,
"listRevision": "example"
}
|
Name |
Description |
|
data |
Type: DefectGroupDto[] Example
|
|
nextPageToken |
Type: string Example: |
|
totalSize |
Type: integer |
|
listRevision |
Type: string | null Example: |
UUID
Type: string<uuid>
Pattern: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
Example: 123e4567-e89b-12d3-a456-426614174000
DefectGroupLinkDto
|
Name |
Description |
|
type |
Type: LinkType Enum: |
|
url |
Type: string Example: |
Example
{
"type": "EXTERNAL_URL",
"url": "example"
}
DefectGroupDto
|
Name |
Description |
|
codeBlock |
Type: string Example: |
|
cvssScore |
Type: number |
|
engine |
Type: string Example: |
|
fileName |
Type: string Example: |
|
firstCommit |
Type: string Example: |
|
firstTimeFound |
Type: integer |
|
gitRepo |
Type: string Example: |
|
id |
Type: integer |
|
latestCommit |
Type: string Example: |
|
latestTimeFound |
Type: integer |
|
neuroScore |
Type: integer |
|
neuroTriageUuid |
Any of 2 types
Example: |
|
ruleId |
Type: string Example: |
|
ruleName |
Type: string Example: |
|
severity |
Type: integer |
|
status |
Type: integer |
|
uuid |
Type: UUID Pattern: Example: |
|
endColumn |
Type: integer |
|
endLine |
Type: integer |
|
engineType |
Type: integer |
|
findingsCount |
Type: integer |
|
fixOperationUuid |
Any of 2 types
Example: |
|
links |
Type: DefectGroupLinkDto[] Example
|
|
publicId |
Type: integer |
|
startColumn |
Type: integer |
|
startLine |
Type: integer |
Example
{
"id": 0,
"ruleName": "example",
"codeBlock": "example",
"fileName": "example",
"latestCommit": "example",
"latestTimeFound": 0,
"gitRepo": "example",
"status": 0,
"severity": 0,
"cvssScore": 0.5,
"engine": "example",
"neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
"neuroScore": 0,
"firstCommit": "example",
"firstTimeFound": 0,
"uuid": null,
"ruleId": "example",
"findingsCount": 0,
"publicId": 0,
"fixOperationUuid": null,
"engineType": 0,
"startLine": 0,
"endLine": 0,
"startColumn": 0,
"endColumn": 0,
"links": [
{
"type": "EXTERNAL_URL",
"url": "example"
}
]
}
No longer supported, please use an alternative and newer version.