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
d4cef4aa
Commit
d4cef4aa
authored
Jan 07, 2018
by
Greg Messner
Browse files
Updated for release 4.7.14 (#117).
parent
3926451a
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d4cef4aa
...
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
```
java
dependencies
{
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.7
.
1
2
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.7
.
1
4
'
}
```
...
...
@@ -20,7 +20,7 @@ dependencies {
<dependency>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.7.1
2
</version>
<version>
4.7.1
4
</version>
</dependency>
```
...
...
@@ -133,6 +133,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
[
RepositoryFileApi
](
#repositoryfileapi
)
<br/>
[
ServicesApi
](
#servicesapi
)
<br/>
[
SessionApi
](
#sessionapi
)
<br/>
[
SystemHooksApi
](
#systemhooksapi
)
<br/>
[
UserApi
](
#userapi
)
...
...
@@ -259,6 +260,12 @@ getLabApi.getServicesApi().setGitLabCI("project-name", "auth-token", "project-ci
getLabApi
.
getSessionApi
().
login
(
"your-username"
,
"your-email"
,
"your-password"
);
```
#### SystemHooksApi
```
java
// Get a list of installed system hooks
List
<
SystemHook
>
hooks
=
gitLabApi
.
getSystemHooksApi
().
getSystemHooks
();
```
#### UserApi
```
java
// Get the User info for user_id 1
...
...
pom.xml
View file @
d4cef4aa
...
...
@@ -5,7 +5,7 @@
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<packaging>
jar
</packaging>
<version>
4.7.1
3
-SNAPSHOT
</version>
<version>
4.7.1
4
-SNAPSHOT
</version>
<name>
GitLab API Java Client
</name>
<description>
GitLab API for Java (gitlab4j-api) provides a full featured Java API for working with GitLab repositories via the GitLab REST API.
</description>
<url>
https://github.com/gmessner/gitlab4j-api
</url>
...
...
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