8000 Replace out-dated example JSON bodies · sarahyingying/github3.py@c903cdf · GitHub
[go: up one dir, main page]

Skip to content

Commit c903cdf

Browse files
committed
Replace out-dated example JSON bodies
1 parent f978b7b commit c903cdf

File tree

3 files changed

+316
-74
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,85 @@
11
{
2-
"id": "1",
3-
"repository": {
4-
"id": 1296269,
5-
"owner": {
6-
"login": "octocat",
7-
"id": 1,
8-
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
9-
"gravatar_id": "",
10-
"url": "https://api.github.com/users/octocat",
11-
"html_url": "https://github.com/octocat",
12-
"followers_url": "https://api.github.com/users/octocat/followers",
13-
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
14-
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
15-
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
16-
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
17-
"organizations_url": "https://api.github.com/users/octocat/orgs",
18-
"repos_url": "https://api.github.com/users/octocat/repos",
19-
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
20-
"received_events_url": "https://api.github.com/users/octocat/received_events",
21-
"type": "User",
22-
"site_admin": false
2+
"id": "1",
3+
"repository": {
4+
"id": 1296269,
5+
"owner": {
6+
"login": "octocat",
7+
"id": 1,
8+
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
9+
"gravatar_id": "",
10+
"url": "https://api.github.com/users/octocat",
11+
"html_url": "https://github.com/octocat",
12+
"followers_url": "https://api.github.com/users/octocat/followers",
13+
"following_url":
14+
"https://api.github.com/users/octocat/following{/other_user}",
15+
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
16+
"starred_url":
17+
"https://api.github.com/users/octocat/starred{/owner}{/repo}",
18+
"subscriptions_url":
19+
"https://api.github.com/users/octocat/subscriptions",
20+
"organizations_url": "https://api.github.com/users/octocat/orgs",
21+
"repos_url": "https://api.github.com/users/octocat/repos",
22+
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
23+
"received_events_url":
24+
"https://api.github.com/users/octocat/received_events",
25+
"type": "User",
26+
"site_admin": false
27+
},
28+
"name": "Hello-World",
29+
"full_name": "octocat/Hello-World",
30+
"description": "This your first repo!",
31+
"private": false,
32+
"fork": false,
33+
"archive_url": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}",
34+
"assignees_url": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}",
35+
"blobs_url": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}",
36+
"branches_url": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}",
37+
"collaborators_url": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}",
38+
"comments_url": "http://api.github.com/repos/octocat/Hello-World/comments{/number}",
39+
"commits_url": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}",
40+
"compare_url": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}",
41+
"contents_url": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}",
42+
"contributors_url": "http://api.github.com/repos/octocat/Hello-World/contributors",
43+
"deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments",
44+
"downloads_url": "http://api.github.com/repos/octocat/Hello-World/downloads",
45+
"events_url": "http://api.github.com/repos/octocat/Hello-World/events",
46+
"forks_url": "http://api.github.com/repos/octocat/Hello-World/forks",
47+
"git_commits_url": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}",
48+
"git_refs_url": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}",
49+
"git_tags_url": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}",
50+
"hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks",
51+
"issue_comment_url": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}",
52+
"issue_events_url": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}",
53+
"issues_url": "http://api.github.com/repos/octocat/Hello-World/issues{/number}",
54+
"keys_url": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}",
55+
"labels_url": "http://api.github.com/repos/octocat/Hello-World/labels{/name}",
56+
"languages_url": "http://api.github.com/repos/octocat/Hello-World/languages",
57+
"merges_url": "http://api.github.com/repos/octocat/Hello-World/merges",
58+
"milestones_url": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}",
59+
"notifications_url": "http://api.github.com/repos/octocat/Hello-World/notifications{?since, all, participating}",
60+
"pulls_url": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}",
61+
"releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}",
62+
"stargazers_url": "http://api.github.com/repos/octocat/Hello-World/stargazers",
63+
"statuses_url": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}",
64+
"subscribers_url": "http://api.github.com/repos/octocat/Hello-World/subscribers",
65+
"subscription_url": "http://api.github.com/repos/octocat/Hello-World/subscription",
66+
"tags_url": "http://api.github.com/repos/octocat/Hello-World/tags",
67+
"teams_url": "http://api.github.com/repos/octocat/Hello-World/teams",
68+
"trees_url": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}",
69+
"url": "https://api.github.com/repos/octocat/Hello-World",
70+
"html_url": "https://github.com/octocat/Hello-World"
2371
},
24-
"name": "Hello-World",
25-
"full_name": "octocat/Hello-World",
26-
"description": "This your first repo!",
27-
"private": false,
28-
"fork": false,
29-
"url": "https://api.github.com/repos/octocat/Hello-World",
30-
"html_url": "https://github.com/octocat/Hello-World"
31-
},
32-
"subject": {
33-
"title": "Greetings",
34-
"url": "https://api.github.com/repos/octokit/octokit.rb/issues/123",
35-
"latest_comment_url": "https://api.github.com/repos/octokit/octokit.rb/issues/comments/123",
36-
"type": "Issue"
37-
},
38-
"reason": "subscribed",
39-
"unread": true,
40-
"updated_at": "2014-11-07T22:01:45Z",
41-
"last_read_at": "2014-11-07T22:01:45Z",
42-
"url": "https://api.github.com/notifications/threads/1"
72+
"subject": {
73+
"title": "Greetings",
74+
"url": "https://api.github.com/repos/octokit/octokit.rb/issues/123",
75+
"latest_comment_url":
76+
"https://api.github.com/repos/octokit/octokit.rb/issues/comments/123",
77+
"type": "Issue"
78+
},
79+
"reason": "subscribed",
80+
"unread": true,
81+
"updated_at": "2014-11-07T22:01:45Z",
82+
"last_read_at": "2014-11-07T22:01:45Z",
83+
"url": "https://api.github.com/notifications/threads/1"
4384
}
85+