我正在尝试按照https://developer.github.com/enterprise/2.15/v3/enterprise-admin/admin_stats/使用以下命令获取GitHub实例的统计数据
curl -u username:password https://<hostname>/api/v3/enterprise/stats/:all
然而,我得到了下面的消息。请帮我解决这个问题
{
"message": "Not Found",
"documentation_url": "https://developer.github.com/enterprise/2.14/v3"
}发布于 2019-01-10 14:06:46
由于文档中规定:
它只对经过身份验证的站点管理员可用。
如果普通用户尝试访问它,他们将收到404响应。
如果您在GitHub企业版服务器上声明为站点管理员,请首先选中。
发布于 2019-01-11 05:32:27
通过删除api中的: (优先于所有)解决了该问题。
https://stackoverflow.com/questions/54118065
复制相似问题