【发布时间】:2018-07-25 10:31:33
【问题描述】:
我想仅使用其名称来获取有关 github 存储库的一些信息。为此,我将我的 url 构建为 https://api.github.com/repos/:owner/<TheName> 但当然它不起作用,因为我需要 :owner 字段。我在 github api 文档页面上找到了许多获取不同信息的方法,但没有一种方法可以获取所有者。有没有什么方法可以轻松搞定?
例如对于输入“spring-boot” repo,api 应该返回 full_name 即 spring-projects/spring-boot (因为 spring-boot 的 git url 是 https://github.com/spring-projects/spring-boot)。
感谢您的帮助。
【问题讨论】:
标签: git github github-api github-api-v3