tinybucket 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +35 -0
- data/.rspec +1 -0
- data/.rubocop.yml +44 -0
- data/.travis.yml +10 -0
- data/Gemfile +22 -0
- data/Guardfile +13 -0
- data/LICENSE +21 -0
- data/README.md +237 -0
- data/Rakefile +39 -0
- data/lib/faraday_middleware/follow_oauth_redirects.rb +67 -0
- data/lib/tinybucket.rb +61 -0
- data/lib/tinybucket/api.rb +20 -0
- data/lib/tinybucket/api/base_api.rb +31 -0
- data/lib/tinybucket/api/branch_restrictions_api.rb +26 -0
- data/lib/tinybucket/api/comments_api.rb +46 -0
- data/lib/tinybucket/api/commits_api.rb +26 -0
- data/lib/tinybucket/api/diff_api.rb +17 -0
- data/lib/tinybucket/api/helper.rb +22 -0
- data/lib/tinybucket/api/helper/api_helper.rb +48 -0
- data/lib/tinybucket/api/helper/branch_restrictions_helper.rb +27 -0
- data/lib/tinybucket/api/helper/comments_helper.rb +49 -0
- data/lib/tinybucket/api/helper/commits_helper.rb +27 -0
- data/lib/tinybucket/api/helper/diff_helper.rb +29 -0
- data/lib/tinybucket/api/helper/pull_requests_helper.rb +44 -0
- data/lib/tinybucket/api/helper/repo_helper.rb +29 -0
- data/lib/tinybucket/api/helper/repos_helper.rb +21 -0
- data/lib/tinybucket/api/helper/team_helper.rb +35 -0
- data/lib/tinybucket/api/helper/user_helper.rb +31 -0
- data/lib/tinybucket/api/pull_requests_api.rb +49 -0
- data/lib/tinybucket/api/repo_api.rb +35 -0
- data/lib/tinybucket/api/repos_api.rb +19 -0
- data/lib/tinybucket/api/team_api.rb +51 -0
- data/lib/tinybucket/api/user_api.rb +44 -0
- data/lib/tinybucket/api_factory.rb +21 -0
- data/lib/tinybucket/client.rb +95 -0
- data/lib/tinybucket/connection.rb +62 -0
- data/lib/tinybucket/constants.rb +4 -0
- data/lib/tinybucket/error.rb +8 -0
- data/lib/tinybucket/error/base_error.rb +12 -0
- data/lib/tinybucket/error/service_error.rb +20 -0
- data/lib/tinybucket/model.rb +20 -0
- data/lib/tinybucket/model/base.rb +54 -0
- data/lib/tinybucket/model/branch_restriction.rb +17 -0
- data/lib/tinybucket/model/comment.rb +39 -0
- data/lib/tinybucket/model/commit.rb +39 -0
- data/lib/tinybucket/model/concerns.rb +14 -0
- data/lib/tinybucket/model/concerns/reloadable.rb +45 -0
- data/lib/tinybucket/model/concerns/repository_keys.rb +43 -0
- data/lib/tinybucket/model/error_response.rb +7 -0
- data/lib/tinybucket/model/page.rb +65 -0
- data/lib/tinybucket/model/profile.rb +37 -0
- data/lib/tinybucket/model/pull_request.rb +64 -0
- data/lib/tinybucket/model/repository.rb +96 -0
- data/lib/tinybucket/model/team.rb +39 -0
- data/lib/tinybucket/parser.rb +25 -0
- data/lib/tinybucket/parser/base_parser.rb +17 -0
- data/lib/tinybucket/parser/branch_restriction_parser.rb +9 -0
- data/lib/tinybucket/parser/branch_restrictions_parser.rb +10 -0
- data/lib/tinybucket/parser/comment_parser.rb +9 -0
- data/lib/tinybucket/parser/comments_parser.rb +10 -0
- data/lib/tinybucket/parser/commit_parser.rb +9 -0
- data/lib/tinybucket/parser/commits_parser.rb +9 -0
- data/lib/tinybucket/parser/profile_parser.rb +9 -0
- data/lib/tinybucket/parser/profiles_parser.rb +9 -0
- data/lib/tinybucket/parser/pull_request_parser.rb +9 -0
- data/lib/tinybucket/parser/pull_requests_parser.rb +10 -0
- data/lib/tinybucket/parser/repo_parser.rb +9 -0
- data/lib/tinybucket/parser/repos_parser.rb +10 -0
- data/lib/tinybucket/parser/team_parser.rb +9 -0
- data/lib/tinybucket/parser/teams_parser.rb +9 -0
- data/lib/tinybucket/request.rb +55 -0
- data/lib/tinybucket/response.rb +7 -0
- data/lib/tinybucket/response/error_handler.rb +14 -0
- data/lib/tinybucket/version.rb +3 -0
- data/spec/fixtures/commit.json +83 -0
- data/spec/fixtures/profile.json +29 -0
- data/spec/fixtures/pull_request.json +106 -0
- data/spec/fixtures/repositories/get.json +78 -0
- data/spec/fixtures/repositories/test_owner/get.json +78 -0
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/1/get.json +17 -0
- data/spec/fixtures/repositories/test_owner/test_repo/branch-restrictions/get.json +101 -0
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/1/get.json +38 -0
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/comments/get.json +40 -0
- data/spec/fixtures/repositories/test_owner/test_repo/commit/1/get.json +83 -0
- data/spec/fixtures/repositories/test_owner/test_repo/commits/get.json +73 -0
- data/spec/fixtures/repositories/test_owner/test_repo/diff/1/get.json +21 -0
- data/spec/fixtures/repositories/test_owner/test_repo/forks/get.json +78 -0
- data/spec/fixtures/repositories/test_owner/test_repo/get.json +71 -0
- data/spec/fixtures/repositories/test_owner/test_repo/patch/1/get.json +29 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/delete.json +3 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/approve/post.json +3 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/1/get.json +30 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/comments/get.json +44 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/commits/get.json +66 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/diff/get.txt +13 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/1/get.json +164 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get.json +112 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_declined.json +112 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_merged.json +112 -0
- data/spec/fixtures/repositories/test_owner/test_repo/pullrequests/get_state_open.json +112 -0
- data/spec/fixtures/repositories/test_owner/test_repo/watchers/get.json +32 -0
- data/spec/fixtures/repository.json +71 -0
- data/spec/fixtures/teams/test_team/followers/get.json +36 -0
- data/spec/fixtures/teams/test_team/following/get.json +39 -0
- data/spec/fixtures/teams/test_team/get.json +32 -0
- data/spec/fixtures/teams/test_team/members/get.json +36 -0
- data/spec/fixtures/teams/test_team/repositories/get.json +125 -0
- data/spec/fixtures/users/test_owner/followers/get.json +65 -0
- data/spec/fixtures/users/test_owner/following/get.json +100 -0
- data/spec/fixtures/users/test_owner/get.json +29 -0
- data/spec/lib/tinybucket/api/branch_restrictions_api_spec.rb +78 -0
- data/spec/lib/tinybucket/api/comments_api_spec.rb +133 -0
- data/spec/lib/tinybucket/api/commits_api_spec.rb +63 -0
- data/spec/lib/tinybucket/api/diff_api_spec.rb +5 -0
- data/spec/lib/tinybucket/api/pull_requests_api_spec.rb +229 -0
- data/spec/lib/tinybucket/api/repo_api_spec.rb +100 -0
- data/spec/lib/tinybucket/api/repos_api_spec.rb +28 -0
- data/spec/lib/tinybucket/api/team_api_spec.rb +87 -0
- data/spec/lib/tinybucket/api/user_api_spec.rb +60 -0
- data/spec/lib/tinybucket/api_factory_spec.rb +23 -0
- data/spec/lib/tinybucket/client_spec.rb +102 -0
- data/spec/lib/tinybucket/connection_spec.rb +30 -0
- data/spec/lib/tinybucket/model/branch_restriction_spec.rb +29 -0
- data/spec/lib/tinybucket/model/comment_spec.rb +31 -0
- data/spec/lib/tinybucket/model/commit_spec.rb +62 -0
- data/spec/lib/tinybucket/model/page_spec.rb +58 -0
- data/spec/lib/tinybucket/model/profile_spec.rb +47 -0
- data/spec/lib/tinybucket/model/pull_request_spec.rb +122 -0
- data/spec/lib/tinybucket/model/repository_spec.rb +131 -0
- data/spec/lib/tinybucket/model/team_spec.rb +53 -0
- data/spec/lib/tinybucket_spec.rb +32 -0
- data/spec/spec_helper.rb +42 -0
- data/spec/support/api_response_macros.rb +30 -0
- data/spec/support/model_macros.rb +61 -0
- data/tinybucket.gemspec +36 -0
- metadata +437 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 2,
|
3
|
+
"next": "https://bitbucket.org/api/2.0/repositories/tutorials/tutorials.bitbucket.org/watchers?pagelen=2&page=2",
|
4
|
+
"values": [
|
5
|
+
{
|
6
|
+
"username": "tutorials",
|
7
|
+
"display_name": "first name last",
|
8
|
+
"links": {
|
9
|
+
"self": {
|
10
|
+
"href": "https://bitbucket.org/api/2.0/users/tutorials"
|
11
|
+
},
|
12
|
+
"avatar": {
|
13
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
14
|
+
}
|
15
|
+
}
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"username": "mmangier",
|
19
|
+
"display_name": "mmangier",
|
20
|
+
"links": {
|
21
|
+
"self": {
|
22
|
+
"href": "https://bitbucket.org/api/2.0/users/mmangier"
|
23
|
+
},
|
24
|
+
"avatar": {
|
25
|
+
"href": "https://secure.gravatar.com/avatar/16b32ae6fcb078db0a088ce2516f2a05?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Ff5a36db3429b%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"page": 1,
|
31
|
+
"size": 19
|
32
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
{
|
2
|
+
"scm": "git",
|
3
|
+
"has_wiki": false,
|
4
|
+
"description": "",
|
5
|
+
"links": {
|
6
|
+
"watchers": {
|
7
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/watchers"
|
8
|
+
},
|
9
|
+
"commits": {
|
10
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/commits"
|
11
|
+
},
|
12
|
+
"self": {
|
13
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork"
|
14
|
+
},
|
15
|
+
"html": {
|
16
|
+
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork"
|
17
|
+
},
|
18
|
+
"avatar": {
|
19
|
+
"href": "https://bitbucket.org/m/3a846b46851a/img/language-avatars/default_16.png"
|
20
|
+
},
|
21
|
+
"forks": {
|
22
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/forks"
|
23
|
+
},
|
24
|
+
"clone": [
|
25
|
+
{
|
26
|
+
"href": "https://bitbucket.org/evzijst/atlassian-connect-fork.git",
|
27
|
+
"name": "https"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"href": "ssh://git@bitbucket.org/evzijst/atlassian-connect-fork.git",
|
31
|
+
"name": "ssh"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"pullrequests": {
|
35
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect-fork/pullrequests"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"fork_policy": "allow_forks",
|
39
|
+
"language": "",
|
40
|
+
"created_on": "2013-08-26T18:13:07.339080+00:00",
|
41
|
+
"parent": {
|
42
|
+
"links": {
|
43
|
+
"self": {
|
44
|
+
"href": "https://api.bitbucket.org/2.0/repositories/evzijst/atlassian-connect"
|
45
|
+
},
|
46
|
+
"avatar": {
|
47
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/m/3a846b46851a/img/language-avatars/default_16.png"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"full_name": "evzijst/atlassian-connect",
|
51
|
+
"name": "atlassian-connect"
|
52
|
+
},
|
53
|
+
"full_name": "evzijst/atlassian-connect-fork",
|
54
|
+
"has_issues": false,
|
55
|
+
"owner": {
|
56
|
+
"username": "evzijst",
|
57
|
+
"display_name": "Erik van Zijst",
|
58
|
+
"links": {
|
59
|
+
"self": {
|
60
|
+
"href": "https://api.bitbucket.org/2.0/users/evzijst"
|
61
|
+
},
|
62
|
+
"avatar": {
|
63
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Oct/28/evzijst-avatar-3454044670-3_avatar.png"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
},
|
67
|
+
"updated_on": "2013-08-26T18:13:07.514065+00:00",
|
68
|
+
"size": 17657351,
|
69
|
+
"is_private": false,
|
70
|
+
"name": "atlassian-connect-fork"
|
71
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 10,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"username": "tutorials",
|
6
|
+
"kind": "team",
|
7
|
+
"website": "https://tutorials.bitbucket.org/",
|
8
|
+
"display_name": "first name last",
|
9
|
+
"links": {
|
10
|
+
"self": {
|
11
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials"
|
12
|
+
},
|
13
|
+
"repositories": {
|
14
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/repositories"
|
15
|
+
},
|
16
|
+
"html": {
|
17
|
+
"href": "https://api.bitbucket.org/tutorials"
|
18
|
+
},
|
19
|
+
"followers": {
|
20
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/followers"
|
21
|
+
},
|
22
|
+
"avatar": {
|
23
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
24
|
+
},
|
25
|
+
"following": {
|
26
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/following"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"created_on": "2011-12-20T16:34:07.132459+00:00",
|
30
|
+
"location": "Santa Monica, CA",
|
31
|
+
"type": "team"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"page": 1,
|
35
|
+
"size": 1
|
36
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 10,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"username": "bitbucket",
|
6
|
+
"kind": "team",
|
7
|
+
"website": "http://bitbucket.org/",
|
8
|
+
"display_name": "Atlassian Bitbucket",
|
9
|
+
"links": {
|
10
|
+
"self": {
|
11
|
+
"href": "https://api.bitbucket.org/2.0/teams/bitbucket"
|
12
|
+
},
|
13
|
+
"repositories": {
|
14
|
+
"href": "https://api.bitbucket.org/2.0/teams/bitbucket/repositories"
|
15
|
+
},
|
16
|
+
"html": {
|
17
|
+
"href": "https://api.bitbucket.org/bitbucket"
|
18
|
+
},
|
19
|
+
"followers": {
|
20
|
+
"href": "https://api.bitbucket.org/2.0/teams/bitbucket/followers"
|
21
|
+
},
|
22
|
+
"avatar": {
|
23
|
+
"href": "https://secure.gravatar.com/avatar/5833a1ae59138da47cd14a9ab6bd1a7f?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fbc85d1577e04%2Fimg%2Fdefault_team_avatar%2F32%2Fteam_blue.png&s=32"
|
24
|
+
},
|
25
|
+
"members": {
|
26
|
+
"href": "https://api.bitbucket.org/2.0/teams/bitbucket/members"
|
27
|
+
},
|
28
|
+
"following": {
|
29
|
+
"href": "https://api.bitbucket.org/2.0/teams/bitbucket/following"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"created_on": "2010-03-23T08:07:49+00:00",
|
33
|
+
"location": "",
|
34
|
+
"type": "team"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"page": 1,
|
38
|
+
"size": 1
|
39
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"username": "1team",
|
3
|
+
"kind": "team",
|
4
|
+
"website": "",
|
5
|
+
"display_name": "the team",
|
6
|
+
"links": {
|
7
|
+
"self": {
|
8
|
+
"href": "https://api.bitbucket.org/2.0/teams/1team"
|
9
|
+
},
|
10
|
+
"repositories": {
|
11
|
+
"href": "https://api.bitbucket.org/2.0/teams/1team/repositories"
|
12
|
+
},
|
13
|
+
"html": {
|
14
|
+
"href": "https://api.bitbucket.org/1team"
|
15
|
+
},
|
16
|
+
"followers": {
|
17
|
+
"href": "https://api.bitbucket.org/2.0/teams/1team/followers"
|
18
|
+
},
|
19
|
+
"avatar": {
|
20
|
+
"href": "https://secure.gravatar.com/avatar/24b6be68b53e383c5d42bab4fe0bde2b?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fbc85d1577e04%2Fimg%2Fdefault_team_avatar%2F32%2Fteam_blue.png&s=32"
|
21
|
+
},
|
22
|
+
"members": {
|
23
|
+
"href": "https://api.bitbucket.org/2.0/teams/1team/members"
|
24
|
+
},
|
25
|
+
"following": {
|
26
|
+
"href": "https://api.bitbucket.org/2.0/teams/1team/following"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"created_on": "2013-04-22T18:09:29.103337+00:00",
|
30
|
+
"location": "",
|
31
|
+
"type": "team"
|
32
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 50,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"username": "tutorials",
|
6
|
+
"kind": "team",
|
7
|
+
"website": "https://tutorials.bitbucket.org/",
|
8
|
+
"display_name": "first name last",
|
9
|
+
"links": {
|
10
|
+
"self": {
|
11
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials"
|
12
|
+
},
|
13
|
+
"repositories": {
|
14
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/repositories"
|
15
|
+
},
|
16
|
+
"html": {
|
17
|
+
"href": "https://api.bitbucket.org/tutorials"
|
18
|
+
},
|
19
|
+
"followers": {
|
20
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/followers"
|
21
|
+
},
|
22
|
+
"avatar": {
|
23
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
24
|
+
},
|
25
|
+
"following": {
|
26
|
+
"href": "https://api.bitbucket.org/2.0/users/tutorials/following"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"created_on": "2011-12-20T16:34:07.132459+00:00",
|
30
|
+
"location": "Santa Monica, CA",
|
31
|
+
"type": "team"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"page": 1,
|
35
|
+
"size": 1
|
36
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 10,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"scm": "hg",
|
6
|
+
"has_wiki": true,
|
7
|
+
"description": "This repository is used by the Bitbucket tutorial documentation. It is referenced from this page:\r\n\r\nhttps://confluence.atlassian.com/display/BITBUCKET/Split+a+Repository+in+Two ",
|
8
|
+
"links": {
|
9
|
+
"watchers": {
|
10
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/hgsplitpractice/watchers"
|
11
|
+
},
|
12
|
+
"commits": {
|
13
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/hgsplitpractice/commits"
|
14
|
+
},
|
15
|
+
"self": {
|
16
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/hgsplitpractice"
|
17
|
+
},
|
18
|
+
"html": {
|
19
|
+
"href": "https://api.bitbucket.org/tutorials/hgsplitpractice"
|
20
|
+
},
|
21
|
+
"avatar": {
|
22
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2012/Nov/28hgsplitpractice-logo-129947197-5_avatar.png"
|
23
|
+
},
|
24
|
+
"forks": {
|
25
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/hgsplitpractice/forks"
|
26
|
+
},
|
27
|
+
"clone": [
|
28
|
+
{
|
29
|
+
"href": "https://tutorials@bitbucket.org/tutorials/hgsplitpractice",
|
30
|
+
"name": "https"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"href": "ssh://hg@bitbucket.org/tutorials/hgsplitpractice",
|
34
|
+
"name": "ssh"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"pullrequests": {
|
38
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/hgsplitpractice/pullrequests"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"fork_policy": "allow_forks",
|
42
|
+
"language": "",
|
43
|
+
"created_on": "2012-11-27T19:19:33.315067+00:00",
|
44
|
+
"full_name": "tutorials/hgsplitpractice",
|
45
|
+
"has_issues": false,
|
46
|
+
"owner": {
|
47
|
+
"teamname": "tutorials",
|
48
|
+
"display_name": "first name last",
|
49
|
+
"links": {
|
50
|
+
"self": {
|
51
|
+
"href": "https://api.bitbucket.org/2.0/teams/tutorials"
|
52
|
+
},
|
53
|
+
"avatar": {
|
54
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
55
|
+
}
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"updated_on": "2013-02-04T17:04:13.612906+00:00",
|
59
|
+
"size": 19065,
|
60
|
+
"is_private": false,
|
61
|
+
"name": "hgsplitpractice"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"scm": "git",
|
65
|
+
"has_wiki": false,
|
66
|
+
"description": "Example scripts using OAuth to connect to Bitbucket. Please contribute more by issuing a Pull Request here!",
|
67
|
+
"links": {
|
68
|
+
"watchers": {
|
69
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/oauth-examples/watchers"
|
70
|
+
},
|
71
|
+
"commits": {
|
72
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/oauth-examples/commits"
|
73
|
+
},
|
74
|
+
"self": {
|
75
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/oauth-examples"
|
76
|
+
},
|
77
|
+
"html": {
|
78
|
+
"href": "https://api.bitbucket.org/tutorials/oauth-examples"
|
79
|
+
},
|
80
|
+
"avatar": {
|
81
|
+
"href": "https://d3oaxc4q5k2d6q.cloudfront.net/m/bc85d1577e04/img/language-avatars/default_16.png"
|
82
|
+
},
|
83
|
+
"forks": {
|
84
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/oauth-examples/forks"
|
85
|
+
},
|
86
|
+
"clone": [
|
87
|
+
{
|
88
|
+
"href": "https://tutorials@bitbucket.org/tutorials/oauth-examples.git",
|
89
|
+
"name": "https"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"href": "ssh://git@bitbucket.org/tutorials/oauth-examples.git",
|
93
|
+
"name": "ssh"
|
94
|
+
}
|
95
|
+
],
|
96
|
+
"pullrequests": {
|
97
|
+
"href": "https://api.bitbucket.org/2.0/repositories/tutorials/oauth-examples/pullrequests"
|
98
|
+
}
|
99
|
+
},
|
100
|
+
"fork_policy": "allow_forks",
|
101
|
+
"language": "",
|
102
|
+
"created_on": "2013-04-01T21:19:07.973032+00:00",
|
103
|
+
"full_name": "tutorials/oauth-examples",
|
104
|
+
"has_issues": false,
|
105
|
+
"owner": {
|
106
|
+
"teamname": "tutorials",
|
107
|
+
"display_name": "first name last",
|
108
|
+
"links": {
|
109
|
+
"self": {
|
110
|
+
"href": "https://api.bitbucket.org/2.0/teams/tutorials"
|
111
|
+
},
|
112
|
+
"avatar": {
|
113
|
+
"href": "https://bitbucket-assetroot.s3.amazonaws.com/c/photos/2013/Jul/17/tutorials-avatar-1826704565-4_avatar.png"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"updated_on": "2013-04-01T21:20:22.492622+00:00",
|
118
|
+
"size": 1794,
|
119
|
+
"is_private": false,
|
120
|
+
"name": "OAuth Examples"
|
121
|
+
}
|
122
|
+
],
|
123
|
+
"page": 1,
|
124
|
+
"size": 2
|
125
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"pagelen": 10,
|
3
|
+
"values": [
|
4
|
+
{
|
5
|
+
"username": "RagnarArdal",
|
6
|
+
"kind": "user",
|
7
|
+
"website": null,
|
8
|
+
"display_name": "Ragnar Árdal",
|
9
|
+
"links": {
|
10
|
+
"self": {
|
11
|
+
"href": "https://api.bitbucket.org/2.0/users/RagnarArdal"
|
12
|
+
},
|
13
|
+
"repositories": {
|
14
|
+
"href": "https://api.bitbucket.org/2.0/users/RagnarArdal/repositories"
|
15
|
+
},
|
16
|
+
"html": {
|
17
|
+
"href": "https://api.bitbucket.org/RagnarArdal"
|
18
|
+
},
|
19
|
+
"followers": {
|
20
|
+
"href": "https://api.bitbucket.org/2.0/users/RagnarArdal/followers"
|
21
|
+
},
|
22
|
+
"avatar": {
|
23
|
+
"href": "https://secure.gravatar.com/avatar/27ca0dc0bb96722af4f0222f6260fbb5?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fb376619db485%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
24
|
+
},
|
25
|
+
"following": {
|
26
|
+
"href": "https://api.bitbucket.org/2.0/users/RagnarArdal/following"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"created_on": "2013-04-19T19:10:54.044200+00:00",
|
30
|
+
"location": null,
|
31
|
+
"type":"user"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"username": "ericko",
|
35
|
+
"kind": "user",
|
36
|
+
"website": "",
|
37
|
+
"display_name": "ericko",
|
38
|
+
"links": {
|
39
|
+
"self": {
|
40
|
+
"href": "https://api.bitbucket.org/2.0/users/ericko"
|
41
|
+
},
|
42
|
+
"repositories": {
|
43
|
+
"href": "https://api.bitbucket.org/2.0/users/ericko/repositories"
|
44
|
+
},
|
45
|
+
"html": {
|
46
|
+
"href": "https://api.bitbucket.org/ericko"
|
47
|
+
},
|
48
|
+
"followers": {
|
49
|
+
"href": "https://api.bitbucket.org/2.0/users/ericko/followers"
|
50
|
+
},
|
51
|
+
"avatar": {
|
52
|
+
"href": "https://secure.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2Fb376619db485%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32"
|
53
|
+
},
|
54
|
+
"following": {
|
55
|
+
"href": "https://api.bitbucket.org/2.0/users/ericko/following"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"created_on": "2013-10-20T16:29:04.388755+00:00",
|
59
|
+
"location": "",
|
60
|
+
"type":"user"
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"page": 1,
|
64
|
+
"size": 2
|
65
|
+
}
|