Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
a28fc55f
Commit
a28fc55f
authored
Feb 05, 2017
by
Greg Messner
Browse files
Mods for GitLab 8 support.
parent
1d5d936c
Changes
50
Hide whitespace changes
Inline
Side-by-side
src/test/resources/com/messners/gitlab/api/member.json
View file @
a28fc55f
{
{
"id"
:
1
,
"id"
:
1
,
"username"
:
"raymond_smith"
,
"username"
:
"raymond_smith"
,
"email"
:
"ray@smith.org"
,
"name"
:
"Raymond Smith"
,
"name"
:
"Raymond Smith"
,
"state"
:
"active"
,
"state"
:
"active"
,
"created_at"
:
"2012-10-22T14:13:35Z"
,
"created_at"
:
"2012-10-22T14:13:35Z"
,
"access_level"
:
30
"access_level"
:
30
}
}
\ No newline at end of file
src/test/resources/com/messners/gitlab/api/milestone.json
View file @
a28fc55f
...
@@ -9,4 +9,3 @@
...
@@ -9,4 +9,3 @@
"updated_at"
:
"2013-10-02T09:24:18Z"
,
"updated_at"
:
"2013-10-02T09:24:18Z"
,
"created_at"
:
"2013-10-02T09:24:18Z"
"created_at"
:
"2013-10-02T09:24:18Z"
}
}
src/test/resources/com/messners/gitlab/api/note.json
View file @
a28fc55f
{
{
"id"
:
52
,
"id"
:
1659
,
"title"
:
"Snippet"
,
"body"
:
"This is a good idea."
,
"file_name"
:
"snippet.rb"
,
"author"
:
{
"author"
:{
"id"
:
1
,
"id"
:
1
,
"username"
:
"pipin"
,
"username"
:
"pipin"
,
"email"
:
"admin@example.com"
,
"email"
:
"admin@example.com"
,
"name"
:
"Pip"
,
"name"
:
"Pip"
,
"state"
:
"active"
,
"state"
:
"active"
,
"created_at"
:
"2013-09-30T13:46:01Z"
,
"created_at"
:
"2013-09-30T13:46:01Z"
"avatar_url"
:
"http://www.gravatar.com/avatar/5224fd70153710e92fb8bcf79ac29d67?s=80&d=identicon"
,
"web_url"
:
"https://gitlab.example.com/pipin"
},
},
"updated_at"
:
"2013-10-02T07:34:20Z"
,
"created_at"
:
"2016-04-06T16:51:53.239Z"
,
"created_at"
:
"2013-10-02T07:34:20Z"
"system"
:
false
,
}
"noteable_id"
:
52
,
"noteable_type"
:
"Snippet"
,
"upvote"
:
false
,
"downvote"
:
false
}
\ No newline at end of file
src/test/resources/com/messners/gitlab/api/project-snippet.json
View file @
a28fc55f
...
@@ -11,6 +11,6 @@
...
@@ -11,6 +11,6 @@
"created_at"
:
"2012-05-23T08:00:58Z"
"created_at"
:
"2012-05-23T08:00:58Z"
},
},
"updated_at"
:
"2012-06-28T10:52:04Z"
,
"updated_at"
:
"2012-06-28T10:52:04Z"
,
"created_at"
:
"2012-06-28T10:52:04Z"
"created_at"
:
"2012-06-28T10:52:04Z"
,
"web_url"
:
"http://example.com/example/example/snippets/1"
}
}
src/test/resources/com/messners/gitlab/api/project.json
View file @
a28fc55f
{
{
"id"
:
6
,
"id"
:
3
,
"default_branch"
:
"master"
,
"default_branch"
:
"master"
,
"public"
:
false
,
"public"
:
false
,
"visibility_level"
:
0
,
"visibility_level"
:
0
,
"ssh_url_to_repo"
:
"git@example.com:brightbox/puppet.git"
,
"ssh_url_to_repo"
:
"git@example.com:diaspora/diaspora-project-site.git"
,
"http_url_to_repo"
:
"http://example.com/brightbox/puppet.git"
,
"http_url_to_repo"
:
"http://example.com/diaspora/diaspora-project-site.git"
,
"web_url"
:
"http://example.com/brightbox/puppet"
,
"web_url"
:
"http://example.com/diaspora/diaspora-project-site"
,
"owner"
:
{
"tag_list"
:
[
"id"
:
4
,
"example"
,
"name"
:
"Brightbox"
,
"disapora project"
"created_at"
:
"2013-09-30T13:46:02Z"
],
},
"owner"
:
{
"name"
:
"Puppet"
,
"id"
:
3
,
"name_with_namespace"
:
"Brightbox / Puppet"
,
"name"
:
"Diaspora"
,
"path"
:
"puppet"
,
"created_at"
:
"2013-09-30T13:46:02Z"
"path_with_namespace"
:
"brightbox/puppet"
,
},
"issues_enabled"
:
true
,
"name"
:
"Diaspora Project Site"
,
"merge_requests_enabled"
:
true
,
"name_with_namespace"
:
"Diaspora / Diaspora Project Site"
,
"wall_enabled"
:
false
,
"path"
:
"diaspora-project-site"
,
"wiki_enabled"
:
true
,
"path_with_namespace"
:
"diaspora/diaspora-project-site"
,
"snippets_enabled"
:
false
,
"issues_enabled"
:
true
,
"open_issues_count"
:
1
,
"merge_requests_enabled"
:
true
,
"builds_enabled"
:
true
,
"wiki_enabled"
:
true
,
"snippets_enabled"
:
false
,
"container_registry_enabled"
:
false
,
"created_at"
:
"2013-09-30T13:46:02Z"
,
"last_activity_at"
:
"2013-09-30T13:46:02Z"
,
"creator_id"
:
3
,
"namespace"
:
{
"created_at"
:
"2013-09-30T13:46:02Z"
,
"created_at"
:
"2013-09-30T13:46:02Z"
,
"last_activity_at"
:
"2013-09-30T13:46:02Z"
,
"description"
:
""
,
"namespace"
:
{
"id"
:
3
,
"created_at"
:
"2013-09-30T13:46:02Z"
,
"name"
:
"Diaspora"
,
"description"
:
""
,
"owner_id"
:
1
,
"id"
:
4
,
"path"
:
"diaspora"
,
"name"
:
"Brightbox"
,
"updated_at"
:
"2013-09-30T13:46:02Z"
"owner_id"
:
1
,
},
"path"
:
"brightbox"
,
"permissions"
:
{
"updated_at"
:
"2013-09-30T13:46:02Z"
"project_access"
:
{
"access_level"
:
10
,
"notification_level"
:
3
},
"group_access"
:
{
"access_level"
:
50
,
"notification_level"
:
3
}
},
"archived"
:
false
,
"avatar_url"
:
"http://example.com/uploads/project/avatar/3/uploads/avatar.png"
,
"shared_runners_enabled"
:
true
,
"forks_count"
:
0
,
"star_count"
:
0
,
"runners_token"
:
"b8bc4a7a29eb76ea83cf79e4908c2b"
,
"public_builds"
:
true
,
"shared_with_groups"
:
[
{
"group_id"
:
4
,
"group_name"
:
"Twitter"
,
"group_access_level"
:
30
},
{
"group_id"
:
3
,
"group_name"
:
"Gitlab Org"
,
"group_access_level"
:
10
}
}
}
],
"repository_storage"
:
"default"
,
"only_allow_merge_if_build_succeeds"
:
false
,
"only_allow_merge_if_all_discussions_are_resolved"
:
false
,
"request_access_enabled"
:
false
}
\ No newline at end of file
src/test/resources/com/messners/gitlab/api/push-event.json
View file @
a28fc55f
{
{
"object_kind"
:
"push"
,
"before"
:
"95790bf891e76fee5e1747ab589903a6a1f80f22"
,
"before"
:
"95790bf891e76fee5e1747ab589903a6a1f80f22"
,
"after"
:
"da1560886d4f094c3e6c9ef40349f7d38b5d27d7"
,
"after"
:
"da1560886d4f094c3e6c9ef40349f7d38b5d27d7"
,
"ref"
:
"refs/heads/master"
,
"ref"
:
"refs/heads/master"
,
"checkout_sha"
:
"da1560886d4f094c3e6c9ef40349f7d38b5d27d7"
,
"user_id"
:
4
,
"user_id"
:
4
,
"user_name"
:
"John Smith"
,
"user_name"
:
"John Smith"
,
"user_email"
:
"john@example.com"
,
"user_avatar"
:
"https://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=8://s.gravatar.com/avatar/d4c74594d841139328695756648b6bd6?s=80"
,
"project_id"
:
15
,
"project_id"
:
15
,
"project"
:{
"name"
:
"Diaspora"
,
"description"
:
""
,
"web_url"
:
"http://example.com/mike/diaspora"
,
"avatar_url"
:
null
,
"git_ssh_url"
:
"git@example.com:mike/diaspora.git"
,
"git_http_url"
:
"http://example.com/mike/diaspora.git"
,
"namespace"
:
"Mike"
,
"visibility_level"
:
0
,
"path_with_namespace"
:
"mike/diaspora"
,
"default_branch"
:
"master"
,
"homepage"
:
"http://example.com/mike/diaspora"
,
"url"
:
"git@example.com:mike/diaspora.git"
,
"ssh_url"
:
"git@example.com:mike/diaspora.git"
,
"http_url"
:
"http://example.com/mike/diaspora.git"
},
"repository"
:
{
"repository"
:
{
"name"
:
"Diaspora"
,
"name"
:
"Diaspora"
,
"url"
:
"git@localhost:diaspora.git"
,
"url"
:
"git@localhost:diaspora.git"
,
...
...
src/test/resources/com/messners/gitlab/api/session.json
View file @
a28fc55f
{
{
"id"
:
1
,
"username"
:
"john_smith"
,
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"name"
:
"John Smith"
,
"private_token"
:
"dd34asd13as"
,
"username"
:
"john_smith"
,
"blocked"
:
false
,
"id"
:
32
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"state"
:
"active"
,
"avatar_url"
:
null
,
"created_at"
:
"2015-01-29T21:07:19.440Z"
,
"is_admin"
:
true
,
"bio"
:
null
,
"skype"
:
""
,
"skype"
:
""
,
"linkedin"
:
""
,
"linkedin"
:
""
,
"twitter"
:
""
,
"twitter"
:
""
,
"website_url"
:
""
,
"website_url"
:
""
,
"
dark_scheme"
:
false
,
"
email"
:
"john@example.com"
,
"theme_id"
:
1
,
"theme_id"
:
1
,
"is_admin"
:
false
,
"color_scheme_id"
:
1
,
"can_create_group"
:
true
,
"projects_limit"
:
10
,
"can_create_team"
:
true
,
"current_sign_in_at"
:
"2015-07-07T07:10:58.392Z"
,
"can_create_project"
:
true
"identities"
:
[],
}
"can_create_group"
:
true
,
"can_create_project"
:
true
,
"two_factor_enabled"
:
false
,
"private_token"
:
"9koXpg98eAheJpvBs5tK"
}
\ No newline at end of file
src/test/resources/com/messners/gitlab/api/tag.json
View file @
a28fc55f
{
{
"name"
:
"v1.0.0"
,
"commit"
:
{
"commit"
:
{
"author_name"
:
"John Smith"
,
"author_email"
:
"john@example.com"
,
"authored_date"
:
"2012-05-28T04:42:42Z"
,
"committed_date"
:
"2012-05-28T04:42:42Z"
,
"committer_name"
:
"Jack Smith"
,
"committer_email"
:
"jack@example.com"
,
"id"
:
"2695effb5807a22ff3d138d593fd856244e155e7"
,
"id"
:
"2695effb5807a22ff3d138d593fd856244e155e7"
,
"parents"
:
[
],
"tree"
:
"38017f2f189336fe4497e9d230c5bb1bf873f08d"
,
"message"
:
"Initial commit"
,
"message"
:
"Initial commit"
,
"author"
:
{
"parent_ids"
:
[
"name"
:
"John Smith"
,
"2a4b78934375d7f53875269ffd4f45fd83a84ebe"
"email"
:
"john@example.com"
]
},
"committer"
:
{
"name"
:
"Jack Smith"
,
"email"
:
"jack@example.com"
},
"authored_date"
:
"2012-05-28T11:42:42Z"
,
"committed_date"
:
"2012-05-28T11:42:42Z"
},
},
"protected"
:
false
"release"
:
{
}
"tag_name"
:
"1.0.0"
,
"description"
:
"Amazing release. Wow"
},
"name"
:
"v1.0.0"
}
\ No newline at end of file
src/test/resources/com/messners/gitlab/api/tree.json
View file @
a28fc55f
[{
[
"name"
:
"assets"
,
{
"type"
:
"tree"
,
"id"
:
"a1e8f8d745cc87e3a9248358d9352bb7f9a0aeba"
,
"mode"
:
"040000"
,
"name"
:
"html"
,
"id"
:
"6229c43a7e16fcc7e95f923f8ddadb8281d9c6c6"
"type"
:
"tree"
,
},
{
"path"
:
"files/html"
,
"name"
:
"contexts"
,
"mode"
:
"040000"
"type"
:
"tree"
,
},
"mode"
:
"040000"
,
{
"id"
:
"faf1cdf33feadc7973118ca42d35f1e62977e91f"
"id"
:
"4535904260b1082e14f867f7a24fd8c21495bde3"
,
},
{
"name"
:
"images"
,
"name"
:
"controllers"
,
"type"
:
"tree"
,
"type"
:
"tree"
,
"path"
:
"files/images"
,
"mode"
:
"040000"
,
"mode"
:
"040000"
"id"
:
"95633e8d258bf3dfba3a5268fb8440d263218d74"
},
},
{
{
"name"
:
"Rakefile"
,
"id"
:
"31405c5ddef582c5a9b7a85230413ff90e2fe720"
,
"type"
:
"blob"
,
"name"
:
"js"
,
"mode"
:
"100644"
,
"type"
:
"tree"
,
"id"
:
"35b2f05cbb4566b71b34554cf184a9d0bd9d46d6"
"path"
:
"files/js"
,
},
{
"mode"
:
"040000"
"name"
:
"VERSION"
,
},
"type"
:
"blob"
,
{
"mode"
:
"100644"
,
"id"
:
"cc71111cfad871212dc99572599a568bfe1e7e00"
,
"id"
:
"803e4a4f3727286c3093c63870c2b6524d30ec4f"
"name"
:
"lfs"
,
},
{
"type"
:
"tree"
,
"name"
:
"config.ru"
,
"path"
:
"files/lfs"
,
"type"
:
"blob"
,
"mode"
:
"040000"
"mode"
:
"100644"
,
},
"id"
:
"dfd2d862237323aa599be31b473d70a8a817943b"
{
}]
"id"
:
"fd581c619bf59cfdfa9c8282377bb09c2f897520"
,
"name"
:
"markdown"
,
"type"
:
"tree"
,
"path"
:
"files/markdown"
,
"mode"
:
"040000"
},
{
"id"
:
"23ea4d11a4bdd960ee5320c5cb65b5b3fdbc60db"
,
"name"
:
"ruby"
,
"type"
:
"tree"
,
"path"
:
"files/ruby"
,
"mode"
:
"040000"
},
{
"id"
:
"7d70e02340bac451f281cecf0a980907974bd8be"
,
"name"
:
"whitespace"
,
"type"
:
"blob"
,
"path"
:
"files/whitespace"
,
"mode"
:
"100644"
}
]
src/test/resources/com/messners/gitlab/api/user.json
View file @
a28fc55f
{
{
"id"
:
1
,
"id"
:
1
,
"username"
:
"john_smith"
,
"username"
:
"john_smith"
,
"email"
:
"john@example.com"
,
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"name"
:
"John Smith"
,
"state"
:
"active"
,
"state"
:
"active"
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"avatar_url"
:
"http://localhost:3000/uploads/user/avatar/1/index.jpg"
,
"skype"
:
""
,
"web_url"
:
"http://localhost:3000/john_smith"
,
"linkedin"
:
""
,
"created_at"
:
"2012-05-23T08:00:58Z"
,
"twitter"
:
""
,
"is_admin"
:
false
,
"website_url"
:
""
,
"skype"
:
""
,
"extern_uid"
:
"john.smith"
,
"linkedin"
:
""
,
"provider"
:
"provider_name"
,
"twitter"
:
""
,
"theme_id"
:
1
,
"website_url"
:
""
,
"color_scheme_id"
:
2
,
"organization"
:
""
,
"is_admin"
:
false
,
"last_sign_in_at"
:
"2012-06-01T11:41:01Z"
,
"can_create_group"
:
true
"confirmed_at"
:
"2012-05-23T09:05:22Z"
,
}
"theme_id"
:
1
,
"color_scheme_id"
:
2
,
"projects_limit"
:
100
,
"current_sign_in_at"
:
"2012-06-02T06:36:55Z"
,
"identities"
:
[
{
"provider"
:
"github"
,
"extern_uid"
:
"2435223452345"
},
{
"provider"
:
"bitbucket"
,
"extern_uid"
:
"john_smith"
},
{
"provider"
:
"google_oauth2"
,
"extern_uid"
:
"8776128412476123468721346"
}
],
"can_create_group"
:
true
,
"can_create_project"
:
true
,
"two_factor_enabled"
:
true
,
"external"
:
false
}
\ No newline at end of file
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment