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
db48ec90
Commit
db48ec90
authored
May 14, 2015
by
六幻
Browse files
add a RepositoryFileApi instance to GilLabApi.
parent
3e42bef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/GitLabApi.java
View file @
db48ec90
...
@@ -17,6 +17,7 @@ public class GitLabApi {
...
@@ -17,6 +17,7 @@ public class GitLabApi {
private
RepositoryApi
repositoryApi
;
private
RepositoryApi
repositoryApi
;
private
SessionApi
sessoinApi
;
private
SessionApi
sessoinApi
;
private
UserApi
userApi
;
private
UserApi
userApi
;
private
RepositoryFileApi
repositoryFileApi
;
/**
/**
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new
* Logs into GitLab using provided {@code username} and {@code password}, and creates a new
...
@@ -48,6 +49,7 @@ public class GitLabApi {
...
@@ -48,6 +49,7 @@ public class GitLabApi {
repositoryApi
=
new
RepositoryApi
(
this
);
repositoryApi
=
new
RepositoryApi
(
this
);
sessoinApi
=
new
SessionApi
(
this
);
sessoinApi
=
new
SessionApi
(
this
);
userApi
=
new
UserApi
(
this
);
userApi
=
new
UserApi
(
this
);
repositoryFileApi
=
new
RepositoryFileApi
(
this
);
}
}
...
@@ -137,4 +139,26 @@ public class GitLabApi {
...
@@ -137,4 +139,26 @@ public class GitLabApi {
public
UserApi
getUserApi
()
{
public
UserApi
getUserApi
()
{
return
(
userApi
);
return
(
userApi
);
}
}
/**
* Gets the RepositoryFileApi instance owned by this GitLabApi instance. The RepositoryFileApi is used
* to perform all repository files related API calls.
*
* @return the RepositoryFileApi instance owned by this GitLabApi instance
*/
public
RepositoryFileApi
getRepositoryFileApi
()
{
return
repositoryFileApi
;
}
/**
* Gets the RepositoryFileApi instance owned by this GitLabApi instance. The RepositoryFileApi is used
* to perform all repository files related API calls.
*
* @return the RepositoryFileApi instance owned by this GitLabApi instance
*/
public
void
setRepositoryFileApi
(
RepositoryFileApi
repositoryFileApi
)
{
this
.
repositoryFileApi
=
repositoryFileApi
;
}
}
}
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