Commit 8077face authored by Greg Messner's avatar Greg Messner
Browse files

Added section for SnippetsApi.

parent 6f5736c4
......@@ -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.8.18'
compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.8.19'
}
```
......@@ -20,7 +20,7 @@ dependencies {
<dependency>
<groupId>org.gitlab4j</groupId>
<artifactId>gitlab4j-api</artifactId>
<version>4.8.18</version>
<version>4.8.19</version>
</dependency>
```
......@@ -156,6 +156,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
&nbsp;&nbsp;[RunnersApi](#runnersapi) <br/>
&nbsp;&nbsp;[ServicesApi](#servicesapi)<br/>
&nbsp;&nbsp;[SessionApi](#sessionapi)<br/>
&nbsp;&nbsp;[SnippetsApi](#snippetsapi)<br/>
&nbsp;&nbsp;[SystemHooksApi](#systemhooksapi)<br/>
&nbsp;&nbsp;[UserApi](#userapi)
......@@ -310,6 +311,12 @@ gitLabApi.getServicesApi().updateSlackService("project-path", slackService);
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
```java
// Get a list of installed system hooks
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment