Get Latest Scan

Request

GET

https://appsec.sourcecraft.tech/v1/scans/latest

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,
  "uuid": "example",
  "status": 0,
  "commitHash": "example",
  "timeStarted": 0,
  "timeFinished": 0,
  "isLatest": true,
  "gitReferenceName": "example",
  "pullRequestId": "example",
  "newDelta": 0,
  "closedDelta": 0,
  "totalDefectGroups": 0,
  "foundDefectGroups": 0,
  "openDefectGroups": 0,
  "scanType": "example",
  "expectedReportCount": 0,
  "receivedReportCount": 0,
  "origin": "example"
}

Name

Description

commitHash

Type: string

Example: example

expectedReportCount

Type: integer

gitReferenceName

Type: string | null

Example: example

id

Type: integer

isLatest

Type: boolean

origin

Type: string

Example: example

pullRequestId

Type: string | null

Example: example

receivedReportCount

Type: integer

scanType

Type: string

Example: example

status

Type: integer

timeFinished

Type: integer | null

timeStarted

Type: integer | null

uuid

Type: string

Example: example

closedDelta

Type: integer | null

foundDefectGroups

Type: integer | null

newDelta

Type: integer | null

openDefectGroups

Type: integer | null

totalDefectGroups

Type: integer | null

Предыдущая
Следующая