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
8077face
Commit
8077face
authored
May 10, 2018
by
Greg Messner
Browse files
Added section for SnippetsApi.
parent
6f5736c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8077face
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
...
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
```
java
```
java
dependencies
{
dependencies
{
...
...
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.8
.
1
8
'
compile
group:
'
org
.
gitlab4j
'
,
name:
'
gitlab4j
-
api
'
,
version:
'
4.8
.
1
9
'
}
}
```
```
...
@@ -20,7 +20,7 @@ dependencies {
...
@@ -20,7 +20,7 @@ dependencies {
<dependency>
<dependency>
<groupId>
org.gitlab4j
</groupId>
<groupId>
org.gitlab4j
</groupId>
<artifactId>
gitlab4j-api
</artifactId>
<artifactId>
gitlab4j-api
</artifactId>
<version>
4.8.1
8
</version>
<version>
4.8.1
9
</version>
</dependency>
</dependency>
```
```
...
@@ -156,6 +156,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
...
@@ -156,6 +156,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
[
RunnersApi
](
#runnersapi
)
<br/>
[
RunnersApi
](
#runnersapi
)
<br/>
[
ServicesApi
](
#servicesapi
)
<br/>
[
ServicesApi
](
#servicesapi
)
<br/>
[
SessionApi
](
#sessionapi
)
<br/>
[
SessionApi
](
#sessionapi
)
<br/>
[
SnippetsApi
](
#snippetsapi
)
<br/>
[
SystemHooksApi
](
#systemhooksapi
)
<br/>
[
SystemHooksApi
](
#systemhooksapi
)
<br/>
[
UserApi
](
#userapi
)
[
UserApi
](
#userapi
)
...
@@ -310,6 +311,12 @@ gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
...
@@ -310,6 +311,12 @@ gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
gitLabApi
.
getSessionApi
().
login
(
"your-username"
,
"your-email"
,
"your-password"
);
gitLabApi
.
getSessionApi
().
login
(
"your-username"
,
"your-email"
,
"your-password"
);
```
```
#### SnippetsApi
```
java
// Get a list of the authenticated user's snippets
List
<
Snippet
>
snippets
=
gitLabApi
.
getSnippetsApi
().
getSnippets
();
```
#### SystemHooksApi
#### SystemHooksApi
```
java
```
java
// Get a list of installed system hooks
// Get a list of installed system hooks
...
...
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