且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在企业中使用Github API进行搜索

更新时间:2023-01-19 20:36:44

Github API的公共和企业API的优点之一是,如果您进入API根目录,它将告诉您哪些端点可用.在企业实例上,它是:http://my.domain.com/api/v3/.查看我公司的企业实例(抱歉,不确定版本),我只会看到旧版搜索API端点

One of the nice things of Github's API both public and Enterprise, is if you go to the API root, it will tell you what endpoints are available. On an enterprise instance it is: http://my.domain.com/api/v3/. Looking at my company's enterprise instance (sorry not sure of the version), I only see the legacy search API endpoints.

结果是:http://my.domain.com/api/v3/legacy/repos/search/pushed:2014-06-17可能是您想要的搜索URL.

As a result: http://my.domain.com/api/v3/legacy/repos/search/pushed:2014-06-17 is likely the search URL you are wanting.