GitHub-API - 获取最新的 api 版本 return "Not Found"
GitHub-API - get latest api version return "Not Found"
我正在使用 GitHub-API 来获取我用过的 API 的最新版本,例如"Parse-SDK-Android" & "parse-server".
正在查询“https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases/latest”
returns 赖特 JSON 数据。
正在查询“https://api.github.com/repos/ParsePlatform/parse-server/releases/latest”
returns JSON "message": "Not Found".
根据文档,这可能是身份验证问题。
所以我有 运行 使用生成的 access_token 的查询,它仍然给我 "message": "Not Found",所以这不是身份验证问题。
据我所知,解析服务器存储库不是私有的。
有人知道吗?
谢谢
您的请求没有问题。
GET: https://api.github.com/repos/ParsePlatform/parse-server/releases
给你一个空的结果:
[]
他们只是没有此存储库的 releases created。与
比较
GET: https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases
作为解决方法,您可以使用
GET: https://api.github.com/repos/ParsePlatform/parse-server/tags
并查看最新标签。
{
"name": "2.1.2",
"zipball_url": "https://api.github.com/repos/ParsePlatform/parse-server/zipball/2.1.2",
"tarball_url": "https://api.github.com/repos/ParsePlatform/parse-server/tarball/2.1.2",
"commit": {
"sha": "01f4bcc3e3f259f2e6e763584e764ed036a657fe",
"url": "https://api.github.com/repos/ParsePlatform/parse-server/commits/01f4bcc3e3f259f2e6e763584e764ed036a657fe"
}
}
我正在使用 GitHub-API 来获取我用过的 API 的最新版本,例如"Parse-SDK-Android" & "parse-server".
正在查询“https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases/latest” returns 赖特 JSON 数据。
正在查询“https://api.github.com/repos/ParsePlatform/parse-server/releases/latest” returns JSON "message": "Not Found".
根据文档,这可能是身份验证问题。
所以我有 运行 使用生成的 access_token 的查询,它仍然给我 "message": "Not Found",所以这不是身份验证问题。
据我所知,解析服务器存储库不是私有的。
有人知道吗?
谢谢
您的请求没有问题。
GET: https://api.github.com/repos/ParsePlatform/parse-server/releases
给你一个空的结果:
[]
他们只是没有此存储库的 releases created。与
比较GET: https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/releases
作为解决方法,您可以使用
GET: https://api.github.com/repos/ParsePlatform/parse-server/tags
并查看最新标签。
{
"name": "2.1.2",
"zipball_url": "https://api.github.com/repos/ParsePlatform/parse-server/zipball/2.1.2",
"tarball_url": "https://api.github.com/repos/ParsePlatform/parse-server/tarball/2.1.2",
"commit": {
"sha": "01f4bcc3e3f259f2e6e763584e764ed036a657fe",
"url": "https://api.github.com/repos/ParsePlatform/parse-server/commits/01f4bcc3e3f259f2e6e763584e764ed036a657fe"
}
}