通过RESTAPI搜索Azure DevOps git存储库

通过RESTAPI搜索Azure DevOps git存储库,git,azure-devops-rest-api,Git,Azure Devops Rest Api,使用Microsoft.TeamFoundationServer.ExtendedClient,我可以连接到Azure DevOps项目并获得git客户端,例如 var connection = new VssConnection("https://dev.azure.com/myorg", new VssBasicCredentials(string.Empty, "patToken")); var client = await connection.GetClientAsync&

使用Microsoft.TeamFoundationServer.ExtendedClient,我可以连接到Azure DevOps项目并获得git客户端,例如

   var connection = new VssConnection("https://dev.azure.com/myorg", new VssBasicCredentials(string.Empty, "patToken"));
   var client = await connection.GetClientAsync<GitHttpClient>().ConfigureAwait(false);
var连接=新的VssConnection(“https://dev.azure.com/myorg,新的VssBasicCredentials(string.Empty,“patToken”);
var client=await connection.GetClientAsync().ConfigureAwait(false);

我可以看到从存储库获取项目的方法,但我看不到github提供的任何搜索方法-它们存在吗?

您需要使用,而不是Git API。Git API更侧重于提供与Git repo交互的方法,而不是在Git repo中搜索项目。

代码搜索API是客户端库的一部分还是直接调用REST API?