getCodeTreeWithHttpInfo method
Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index, with no git checkout involved.
Returns one repository's file structure with a per-file symbol count — get_repo_structure over the org's own index, with no git checkout involved. A repository that has not been indexed answers an empty tree rather than an error, so an agent can tell "nothing here" without handling a failure.
Note: This method returns the HTTP Response.
Parameters:
- String repo: Repo is the repository to walk. REQUIRED — a tree is repo-scoped.
Implementation
Future<Response> getCodeTreeWithHttpInfo({ String? repo, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/code/tree';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (repo != null) {
queryParams.addAll(_queryParams('', 'repo', repo));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}