Get Defect Group By Public Id

Request

GET

https://appsec.sourcecraft.tech/v1/defect-groups/{publicId}

Path parameters

Name

Description

publicId

Type: integer

Per-repository public id of the defect group

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: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

Responses

200 OK

OK

Body

application/json
{
  "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"
    }
  ]
}

Name

Description

codeBlock

Type: string

Example: example

cvssScore

Type: number

engine

Type: string

Example: example

fileName

Type: string

Example: example

firstCommit

Type: string

Example: example

firstTimeFound

Type: integer

gitRepo

Type: string

Example: example

id

Type: integer

latestCommit

Type: string

Example: example

latestTimeFound

Type: integer

neuroScore

Type: integer

neuroTriageUuid

Any of 2 types
  • Type: 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

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

ruleId

Type: string

Example: example

ruleName

Type: string

Example: example

severity

Type: integer

status

Type: integer

uuid

Type: 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

endColumn

Type: integer

endLine

Type: integer

engineType

Type: integer

findingsCount

Type: integer

fixOperationUuid

Any of 2 types
  • Type: 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

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

links

Type: DefectGroupLinkDto[]

Example
[
  {
    "type": "EXTERNAL_URL",
    "url": "example"
  }
]

publicId

Type: integer

startColumn

Type: integer

startLine

Type: integer

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

LinkType

Type: string

Enum: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR, YA_TRACKER

DefectGroupLinkDto

Name

Description

type

Type: LinkType

Enum: EXTERNAL_URL, SOURCECRAFT_ISSUE, SOURCECRAFT_PR, YA_TRACKER

url

Type: string

Example: example

Example
{
  "type": "EXTERNAL_URL",
  "url": "example"
}

No longer supported, please use an alternative and newer version.