curl --request GET \
--url https://api.example.com/codes/{version_id}/tree \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "<string>",
"path": "<string>",
"source_hash": "<string>",
"is_imported": true,
"is_known_target": true,
"n_auditable_fct": 123,
"contracts": [
{
"id": "<string>",
"name": "<string>",
"n_auditable_fct": 123,
"src_start_pos": 123,
"src_end_pos": 123,
"source_id": "<string>",
"functions": [
{
"id": "<string>",
"generic_id": "<string>",
"name": "<string>",
"is_auditable": true,
"is_entry_point": true,
"is_override": true,
"src_start_pos": 123,
"src_end_pos": 123,
"source_id": "<string>",
"is_within_scope": false
}
],
"is_within_scope": false
}
],
"is_within_scope": false
}
]
}get the tree of relevant code segments for a code version
curl --request GET \
--url https://api.example.com/codes/{version_id}/tree \
--header 'Authorization: Bearer <token>'{
"results": [
{
"id": "<string>",
"path": "<string>",
"source_hash": "<string>",
"is_imported": true,
"is_known_target": true,
"n_auditable_fct": 123,
"contracts": [
{
"id": "<string>",
"name": "<string>",
"n_auditable_fct": 123,
"src_start_pos": 123,
"src_end_pos": 123,
"source_id": "<string>",
"functions": [
{
"id": "<string>",
"generic_id": "<string>",
"name": "<string>",
"is_auditable": true,
"is_entry_point": true,
"is_override": true,
"src_start_pos": 123,
"src_end_pos": 123,
"source_id": "<string>",
"is_within_scope": false
}
],
"is_within_scope": false
}
],
"is_within_scope": false
}
]
}