GET
/
repositories
/
{repository_id}
/
hierarchy
Get repository file hierarchy
curl --request GET \
  --url https://apigcp.trynia.ai/v2/repositories/{repository_id}/hierarchy \
  --header 'Authorization: Bearer <token>'
{
  "repository_id": "<string>",
  "hierarchy_text": "<string>",
  "stats": {
    "total_files": 123,
    "total_directories": 123,
    "total_classes": 123,
    "total_methods": 123
  },
  "generated_at": "2023-11-07T05:31:56Z",
  "options": {
    "include_classes": true,
    "include_methods": true
  },
  "hierarchy_tree": {}
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Headers

X-Include-Tree
enum<string>

Include the full tree structure in response (can be large)

Available options:
true,
false

Path Parameters

repository_id
string
required

The ID of the repository

Query Parameters

include_classes
boolean
default:true

Include class names in hierarchy

include_methods
boolean
default:false

Include method names in hierarchy

Response

200
application/json

Hierarchy retrieved successfully

The response is of type object.