Post SCA results
curl --request POST \
--url https://{hostname}.gable.ai/v0/sca/results \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"paths": [
{
"ingress": {
"signature_name": "<string>",
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"kind": "<string>",
"code_anchor": {
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
},
"description": "<string>",
"id": "<string>"
},
"egress": {
"signature_name": "<string>",
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"kind": "<string>",
"code_anchor": {
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
},
"description": "<string>",
"id": "<string>"
},
"code_anchors": [
{
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
}
],
"field_mappings": [
{
"ingress_field": "<string>",
"egress_field": "<string>",
"notes": "<string>",
"field_data_flow_path": [
{
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
}
]
}
],
"transformation_summary": "<string>",
"transformation_summary_detailed": "<string>"
}
],
"run_id": "<string>",
"external_component_id": "<string>",
"type": "<string>",
"name": "<string>",
"metadata": {
"extras": {}
}
}
'{
"message": "<string>",
"id": 123,
"title": "<string>"
}The lineage data for a component. This is not actually part of the API, but is used to generate the type for validation at the CLI and in the backend lineage queue handler.
Show child attributes
The ID of the run that the paths belong to
Optional ID of the external component that was analyzed
The type of component that was analyzed
"CODE"The name of the component that was analyzed
Additional metadata for the component.
Show child attributes
SCA results
curl --request POST \
--url https://{hostname}.gable.ai/v0/sca/results \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"paths": [
{
"ingress": {
"signature_name": "<string>",
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"kind": "<string>",
"code_anchor": {
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
},
"description": "<string>",
"id": "<string>"
},
"egress": {
"signature_name": "<string>",
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": "<array>",
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"kind": "<string>",
"code_anchor": {
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
},
"description": "<string>",
"id": "<string>"
},
"code_anchors": [
{
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
}
],
"field_mappings": [
{
"ingress_field": "<string>",
"egress_field": "<string>",
"notes": "<string>",
"field_data_flow_path": [
{
"anchor_id": "<string>",
"code_uri": {
"file": "<string>",
"line_start": 123,
"column_start": 123,
"line_end": 123,
"column_end": 123
}
}
]
}
],
"transformation_summary": "<string>",
"transformation_summary_detailed": "<string>"
}
],
"run_id": "<string>",
"external_component_id": "<string>",
"type": "<string>",
"name": "<string>",
"metadata": {
"extras": {}
}
}
'{
"message": "<string>",
"id": 123,
"title": "<string>"
}