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
01303067
Commit
01303067
authored
Mar 18, 2014
by
Greg Messner
Browse files
Added getGroupApi().
parent
35734351
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/GitLabApi.java
View file @
01303067
...
@@ -10,6 +10,7 @@ public class GitLabApi {
...
@@ -10,6 +10,7 @@ public class GitLabApi {
GitLabApiClient
apiClient
;
GitLabApiClient
apiClient
;
private
CommitsApi
commitsApi
;
private
CommitsApi
commitsApi
;
private
GroupApi
groupApi
;
private
MergeRequestApi
mergeRequestApi
;
private
MergeRequestApi
mergeRequestApi
;
private
ProjectApi
projectApi
;
private
ProjectApi
projectApi
;
private
RepositoryApi
repositoryApi
;
private
RepositoryApi
repositoryApi
;
...
@@ -26,6 +27,7 @@ public class GitLabApi {
...
@@ -26,6 +27,7 @@ public class GitLabApi {
public
GitLabApi
(
String
hostUrl
,
String
privateToken
)
{
public
GitLabApi
(
String
hostUrl
,
String
privateToken
)
{
apiClient
=
new
GitLabApiClient
(
hostUrl
,
privateToken
);
apiClient
=
new
GitLabApiClient
(
hostUrl
,
privateToken
);
commitsApi
=
new
CommitsApi
(
this
);
commitsApi
=
new
CommitsApi
(
this
);
groupApi
=
new
GroupApi
(
this
);
mergeRequestApi
=
new
MergeRequestApi
(
this
);
mergeRequestApi
=
new
MergeRequestApi
(
this
);
projectApi
=
new
ProjectApi
(
this
);
projectApi
=
new
ProjectApi
(
this
);
repositoryApi
=
new
RepositoryApi
(
this
);
repositoryApi
=
new
RepositoryApi
(
this
);
...
@@ -65,6 +67,17 @@ public class GitLabApi {
...
@@ -65,6 +67,17 @@ public class GitLabApi {
return
(
mergeRequestApi
);
return
(
mergeRequestApi
);
}
}
/**
* Gets the GroupApi instance owned by this GitLabApi instance. The GroupApi is used
* to perform all group related API calls.
*
* @return the GroupApi instance owned by this GitLabApi instance
*/
public
GroupApi
getGroupApi
()
{
return
(
groupApi
);
}
/**
/**
* Gets the ProjectApi instance owned by this GitLabApi instance. The ProjectApi is used
* Gets the ProjectApi instance owned by this GitLabApi instance. The ProjectApi is used
...
...
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