Get References in Config
GET/v1/configs/:configId/code-references
Request
Path Parameters
The identifier of the Config.
Responses
- 200
- 400
- 404
- 429
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
Array [
Array [
]
Array [
]
]
]
]
setting
object
Metadata of a Feature Flag or Setting.
Identifier of the Feature Flag or Setting.
Key of the Feature Flag or Setting.
Name of the Feature Flag or Setting.
Description of the Feature Flag or Setting.
The order of the Feature Flag or Setting represented on the ConfigCat Dashboard.
Possible values: [boolean
, string
, int
, double
]
The type of the Feature Flag or Setting.
Identifier of the Feature Flag's Config.
Name of the Feature Flag's Config.
tags
object[]
nullable
The tags attached to the Feature Flag or Setting.
product
object
Details of the Product.
organization
object
Details of the Organization.
Identifier of the Organization.
Name of the Organization.
Identifier of the Product.
Name of the Product.
Description of the Product.
The order of the Product represented on the ConfigCat Dashboard. Determined from an ascending sequence of integers.
Determines whether a mandatory reason must be given every time when the Feature Flags or Settings within a Product are saved.
Identifier of the Tag.
Name of the Tag.
The configured color of the Tag.
codeReferences
object[]
nullable
List of Code references that belongs to the Feature Flag or Setting.
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.
[
{
"setting": {
"settingId": 0,
"key": "string",
"name": "string",
"hint": "string",
"order": 0,
"settingType": "boolean",
"configId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"configName": "string",
"tags": [
{
"product": {
"organization": {
"organizationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"order": 0,
"reasonRequired": true
},
"tagId": 0,
"name": "string",
"color": "string"
}
]
},
"codeReferences": [
{
"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-05-16T13:42:58.358Z",
"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.