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
0a3911cf
Commit
0a3911cf
authored
Sep 19, 2019
by
Greg Messner
Browse files
Added getSearchApi() (#425).
parent
b2f22cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApi.java
View file @
0a3911cf
...
...
@@ -81,6 +81,7 @@ public class GitLabApi {
private
RepositoryApi
repositoryApi
;
private
RepositoryFileApi
repositoryFileApi
;
private
RunnersApi
runnersApi
;
private
SearchApi
searchApi
;
private
ServicesApi
servicesApi
;
private
SessionApi
sessionApi
;
private
SnippetsApi
snippetsApi
;
...
...
@@ -1462,6 +1463,25 @@ public class GitLabApi {
return
(
runnersApi
);
}
/**
* Gets the SearchApi instance owned by this GitLabApi instance. The SearchApi is used
* to perform search related API calls.
*
* @return the SearchApi instance owned by this GitLabApi instance
*/
public
SearchApi
getSearchApi
()
{
if
(
searchApi
==
null
)
{
synchronized
(
this
)
{
if
(
searchApi
==
null
)
{
searchApi
=
new
SearchApi
(
this
);
}
}
}
return
(
searchApi
);
}
/**
* Gets the ServicesApi instance owned by this GitLabApi instance. The ServicesApi is used
* to perform all services related API calls.
...
...
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