存储库的GitHub API响应的响应中每个字段的含义

时间:2018-12-17 14:15:23

标签: github-api

我正在使用GitHub API获取有关特定存储库的数据,例如像这样:https://api.github.com/repos/octokit/octokit.rb

上面的请求返回这样的JSON(仅显示一些字段):

{
  "id": 417862,
  "node_id": "MDEwOlJlcG9zaXRvcnk0MTc4NjI=",
  "name": "octokit.rb",
  "full_name": "octokit/octokit.rb",
  "private": false,
  "html_url": "https://github.com/octokit/octokit.rb",
  "description": "Ruby toolkit for the GitHub API",
  "fork": false,
  "url": "https://api.github.com/repos/octokit/octokit.rb",
  "created_at": "2009-12-10T21:41:49Z",
  "updated_at": "2018-12-17T07:36:45Z",
  "pushed_at": "2018-11-29T23:38:18Z",
  "homepage": "http://octokit.github.io/octokit.rb/",
  "size": 13875,
  "stargazers_count": 2984,
  "watchers_count": 2984,
  "language": "Ruby",
  "has_issues": true,
  "has_projects": true,
  "has_downloads": true,
  "has_wiki": false,
  "has_pages": true,
  "forks_count": 898,
  "mirror_url": null,
  "archived": false,
  "open_issues_count": 22,
  "license": {
    "key": "mit",
    "name": "MIT License",
    "spdx_id": "MIT",
    "url": "https://api.github.com/licenses/mit",
    "node_id": "MDc6TGljZW5zZTEz"
  },
  "forks": 898,
  "open_issues": 22,
  "watchers": 2984,
  "default_branch": "master",
  "organization": {
    "login": "octokit",
    "id": 3430433,
    "node_id": "MDEyOk9yZ2FuaXphdGlvbjM0MzA0MzM=",
    "avatar_url": "https://avatars0.githubusercontent.com/u/3430433?v=4",
    "type": "Organization",
    "site_admin": false
  },
  "network_count": 898,
  "subscribers_count": 203
}

我的问题是:在哪里可以找到每个字段的含义?例如,我发现一个问题(Github API result)讨论了forkforks_count之间的关系,但是现在我对forksforks_count感到困惑。通常,我如何知道响应中任何字段的含义?

0 个答案:

没有答案