@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
11
11
``` java
12
12
dependencies {
13
13
...
14
- compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.8.18 '
14
+ compile group: ' org.gitlab4j' , name: ' gitlab4j-api' , version: ' 4.8.19 '
15
15
}
16
16
```
17
17
@@ -20,7 +20,7 @@ dependencies {
20
20
<dependency >
21
21
<groupId >org.gitlab4j</groupId >
22
22
<artifactId >gitlab4j-api</artifactId >
23
- <version >4.8.18 </version >
23
+ <version >4.8.19 </version >
24
24
</dependency >
25
25
```
26
26
@@ -156,6 +156,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
156
156
  ;  ; [ RunnersApi] ( #runnersapi ) <br />
157
157
  ;  ; [ ServicesApi] ( #servicesapi ) <br />
158
158
  ;  ; [ SessionApi] ( #sessionapi ) <br />
159
+   ;  ; [ SnippetsApi] ( #snippetsapi ) <br />
159
160
  ;  ; [ SystemHooksApi] ( #systemhooksapi ) <br />
160
161
  ;  ; [ UserApi] ( #userapi )
161
162
@@ -310,6 +311,12 @@ gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
310
311
gitLabApi. getSessionApi(). login(" your-username" , " your-email" , " your-password" );
311
312
```
312
313
314
+ #### SnippetsApi
315
+ ``` java
316
+ // Get a list of the authenticated user's snippets
317
+ List<Snippet > snippets = gitLabApi. getSnippetsApi(). getSnippets();
318
+ ```
319
+
313
320
#### SystemHooksApi
314
321
``` java
315
322
// Get a list of installed system hooks
0 commit comments