Skip to content

Commit 8077fac

Browse files
committed
Added section for SnippetsApi.
1 parent 6f5736c commit 8077fac

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To utilize the GitLab API for Java in your project, simply add the following dep
1111
```java
1212
dependencies {
1313
...
14-
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.18'
14+
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.19'
1515
}
1616
```
1717

@@ -20,7 +20,7 @@ dependencies {
2020
<dependency>
2121
<groupId>org.gitlab4j</groupId>
2222
<artifactId>gitlab4j-api</artifactId>
23-
<version>4.8.18</version>
23+
<version>4.8.19</version>
2424
</dependency>
2525
```
2626

@@ -156,6 +156,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
156156
&nbsp;&nbsp;[RunnersApi](#runnersapi) <br/>
157157
&nbsp;&nbsp;[ServicesApi](#servicesapi)<br/>
158158
&nbsp;&nbsp;[SessionApi](#sessionapi)<br/>
159+
&nbsp;&nbsp;[SnippetsApi](#snippetsapi)<br/>
159160
&nbsp;&nbsp;[SystemHooksApi](#systemhooksapi)<br/>
160161
&nbsp;&nbsp;[UserApi](#userapi)
161162

@@ -310,6 +311,12 @@ gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
310311
gitLabApi.getSessionApi().login("your-username", "your-email", "your-password");
311312
```
312313

314+
#### SnippetsApi
315+
```java
316+
// Get a list of the authenticated user's snippets
317+
List<Snippet> snippets = gitLabApi.getSnippetsApi().getSnippets();
318+
```
319+
313320
#### SystemHooksApi
314321
```java
315322
// Get a list of installed system hooks

0 commit comments

Comments
 (0)