【JSON|Github API 库的JSON文件格式】1. 获取所有库文件
curl -u zhu126fang https://api.github.com/user/repos
2. 截取其中一个库的JSON文件
{
"id": 28468054,
"name": "raspberry",
"full_name": "zhu126fang/raspberry",
"owner": {
"login": "zhu126fang",
"id": 10016241,
"avatar_url": "https://avatars.githubusercontent.com/u/10016241?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/zhu126fang",
"html_url": "https://github.com/zhu126fang",
"followers_url": "https://api.github.com/users/zhu126fang/followers",
"following_url": "https://api.github.com/users/zhu126fang/following{/other_user}",
"gists_url": "https://api.github.com/users/zhu126fang/gists{/gist_id}",
"starred_url": "https://api.github.com/users/zhu126fang/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zhu126fang/subscriptions",
"organizations_url": "https://api.github.com/users/zhu126fang/orgs",
"repos_url": "https://api.github.com/users/zhu126fang/repos",
"events_url": "https://api.github.com/users/zhu126fang/events{/privacy}",
"received_events_url": "https://api.github.com/users/zhu126fang/received_events",
"type": "User",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/zhu126fang/raspberry",
"description": "Official documentation for the Raspberry Pi",
"fork": true,
"url": "https://api.github.com/repos/zhu126fang/raspberry",
"forks_url": "https://api.github.com/repos/zhu126fang/raspberry/forks",
"keys_url": "https://api.github.com/repos/zhu126fang/raspberry/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/zhu126fang/raspberry/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/zhu126fang/raspberry/teams",
"hooks_url": "https://api.github.com/repos/zhu126fang/raspberry/hooks",
"issue_events_url": "https://api.github.com/repos/zhu126fang/raspberry/issues/events{/number}",
"events_url": "https://api.github.com/repos/zhu126fang/raspberry/events",
"assignees_url": "https://api.github.com/repos/zhu126fang/raspberry/assignees{/user}",
"branches_url": "https://api.github.com/repos/zhu126fang/raspberry/branches{/branch}",
"tags_url": "https://api.github.com/repos/zhu126fang/raspberry/tags",
"blobs_url": "https://api.github.com/repos/zhu126fang/raspberry/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/zhu126fang/raspberry/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/zhu126fang/raspberry/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/zhu126fang/raspberry/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/zhu126fang/raspberry/statuses/{sha}",
"languages_url": "https://api.github.com/repos/zhu126fang/raspberry/languages",
"stargazers_url": "https://api.github.com/repos/zhu126fang/raspberry/stargazers",
"contributors_url": "https://api.github.com/repos/zhu126fang/raspberry/contributors",
"subscribers_url": "https://api.github.com/repos/zhu126fang/raspberry/subscribers",
"subscription_url": "https://api.github.com/repos/zhu126fang/raspberry/subscription",
"commits_url": "https://api.github.com/repos/zhu126fang/raspberry/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/zhu126fang/raspberry/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/zhu126fang/raspberry/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/zhu126fang/raspberry/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/zhu126fang/raspberry/contents/{+path}",
"compare_url": "https://api.github.com/repos/zhu126fang/raspberry/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/zhu126fang/raspberry/merges",
"archive_url": "https://api.github.com/repos/zhu126fang/raspberry/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/zhu126fang/raspberry/downloads",
"issues_url": "https://api.github.com/repos/zhu126fang/raspberry/issues{/number}",
"pulls_url": "https://api.github.com/repos/zhu126fang/raspberry/pulls{/number}",
"milestones_url": "https://api.github.com/repos/zhu126fang/raspberry/milestones{/number}",
"notifications_url": "https://api.github.com/repos/zhu126fang/raspberry/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/zhu126fang/raspberry/labels{/name}",
"releases_url": "https://api.github.com/repos/zhu126fang/raspberry/releases{/id}",
"created_at": "2014-12-25T02:29:07Z",
"updated_at": "2015-05-26T10:39:28Z",
"pushed_at": "2014-12-30T03:08:21Z",
"git_url": "git://github.com/zhu126fang/raspberry.git",
"ssh_url": "git@github.com:zhu126fang/raspberry.git",
"clone_url": "https://github.com/zhu126fang/raspberry.git",
"svn_url": "https://github.com/zhu126fang/raspberry",
"homepage": "http://www.raspberrypi.org/documentation",
"size": 22697,
"stargazers_count": 0,
"watchers_count": 0,
"language": "Ruby",
"has_issues": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"open_issues_count": 0,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "Raspberry-Doc",
"permissions": {
"admin": true,
"push": true,
"pull": true
}
},
推荐阅读
- 接口|axios接口报错-参数类型错误解决
- java|微软认真聆听了开源 .NET 开发社区的炮轰( 通过CLI 支持 Hot Reload 功能)
- GitHub|7 款可替代 top 命令的工具
- Spring Boot Serverless 实战系列 | 性能调优
- 讲真,你可能真不会用Github!
- 如何快速开发 Serverless Devs Package ?
- Serverless 年终技术盘点 (工业、学术、社区遍地开花,国内厂商迅速卡位)
- Serverless 场景排查问题利器(函数实例命令行操作)
- 云原生 Serverless Database 使用体验
- curl 作者 Daniel Stenberg 计划(将为 curl 添加原生支持 JSON)