Get References for Feature Flag or Setting
GET/v1/settings/:settingId/code-references
Request
Path Parameters
The identifier of the Feature Flag or Setting.
Responses
- 200
- 400
- 404
- 429
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
Array [
]
]
]
The source control branch on where the scan was performed. (Source of the branch selector on the ConfigCat Dashboard)
references
object[]
nullable
The actual references to the given Feature Flag or Setting.
Possible values: non-empty
and <= 255 characters
The file's name in where the code reference has been found. (Appears on the ConfigCat Dashboard)
Possible values: <= 1000 characters
The file's url. (Used to point to the file on the repository's website)
preLines
object[]
nullable
The lines before the actual reference line.
Possible values: <= 1000 characters
The content of the reference line.
The line number.
postLines
object[]
nullable
The lines after the actual reference line.
Possible values: <= 1000 characters
The content of the reference line.
The line number.
referenceLine
object
required
Determines a code reference line.
Possible values: <= 1000 characters
The content of the reference line.
The line number.
The related commit's URL.
The related commit's hash.
The date and time when the reference report was uploaded.
The source control repository that contains the scanned code.
The identifier of the reference report.
The code reference scanning tool's name.
[
{
"branch": "string",
"references": [
{
"file": "string",
"fileUrl": "string",
"preLines": [
{
"lineText": "string",
"lineNumber": 0
}
],
"postLines": [
{
"lineText": "string",
"lineNumber": 0
}
],
"referenceLine": {
"lineText": "string",
"lineNumber": 0
}
}
],
"commitUrl": "string",
"commitHash": "string",
"syncedAt": "2024-07-29T15:51:28.071Z",
"repository": "string",
"codeReferenceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"uploader": "string"
}
]
Bad request.
Not found.
Too many requests. In case of the request rate exceeds the rate limits.