Commit a7e93a10 authored by Greg Messner's avatar Greg Messner
Browse files

Added DeployKeysApi and IssuesApi info.

parent 222fb26d
...@@ -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.4.8' compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.5.0'
} }
``` ```
...@@ -20,11 +20,11 @@ dependencies { ...@@ -20,11 +20,11 @@ dependencies {
<dependency> <dependency>
<groupId>org.gitlab4j</groupId> <groupId>org.gitlab4j</groupId>
<artifactId>gitlab4j-api</artifactId> <artifactId>gitlab4j-api</artifactId>
<version>4.4.8</version> <version>4.5.0</version>
</dependency> </dependency>
``` ```
If you are not using Gradle or Maven you can download the latest gitlab4j-api JAR file here: [gitlab4j-api-4.4.8.jar](https://oss.sonatype.org/service/local/repositories/releases/content/org/gitlab4j/gitlab4j-api/4.4.8/gitlab4j-api-4.4.8.jar "Download JAR") If you are not using Gradle or Maven you can download the latest gitlab4j-api JAR file here: [gitlab4j-api-4.5.0.jar](https://oss.sonatype.org/service/local/repositories/releases/content/org/gitlab4j/gitlab4j-api/4.5.0/gitlab4j-api-4.5.0.jar "Download JAR")
Javadocs are available here: <a href="http://www.messners.com/gitlab4j-api/javadocs/index.html?org/gitlab4j/api/package-summary.html" target="_top">Javadocs</a> Javadocs are available here: <a href="http://www.messners.com/gitlab4j-api/javadocs/index.html?org/gitlab4j/api/package-summary.html" target="_top">Javadocs</a>
...@@ -78,8 +78,10 @@ The API has been broken up into sub APIs classes to make it easier to learn and ...@@ -78,8 +78,10 @@ The API has been broken up into sub APIs classes to make it easier to learn and
Available Sub APIs Available Sub APIs
------------------ ------------------
&nbsp;&nbsp;[CommitsApi](#commitsapi)<br/> &nbsp;&nbsp;[CommitsApi](#commitsapi)<br/>
&nbsp;&nbsp;[DeployKeysApi](#deploykeysapi)<br/>
&nbsp;&nbsp;[EventsApi](#eventsapi)<br/> &nbsp;&nbsp;[EventsApi](#eventsapi)<br/>
&nbsp;&nbsp;[GroupApi](#groupapi)<br/> &nbsp;&nbsp;[GroupApi](#groupapi)<br/>
&nbsp;&nbsp;[IssuesApi](#issuesapi)<br/>
&nbsp;&nbsp;[JobApi](#jobapi)<br/> &nbsp;&nbsp;[JobApi](#jobapi)<br/>
&nbsp;&nbsp;[MergeRequestApi](#mergerequestapi)<br/> &nbsp;&nbsp;[MergeRequestApi](#mergerequestapi)<br/>
&nbsp;&nbsp;[NamespaceApi](#namespaceapi)<br/> &nbsp;&nbsp;[NamespaceApi](#namespaceapi)<br/>
...@@ -105,13 +107,18 @@ Date until = new Date(); // now ...@@ -105,13 +107,18 @@ Date until = new Date(); // now
List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until); List<Commit> commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until);
``` ```
### DeployKeysApi
```java
// Get a list of DeployKeys for the authenticated user
List<DeployKey> deployKeys = gitLabApi.getDeployKeyssApi().getDeployKeys();
```
### EventsApi ### EventsApi
```java ```java
// Get a list of Events for the authenticated user // Get a list of Events for the authenticated user
Date after = new Date(0); // After Eposc Date after = new Date(0); // After Eposc
Date before = new Date(); // Before now Date before = new Date(); // Before now
List<Event> events = gitLabApi.getEventsApi().getAuthenticatedUserEvents(null, null, before, after, DESC); List<Event> events = gitLabApi.getEventsApi().getAuthenticatedUserEvents(null, null, before, after, DESC);
assertNotNull(events);
``` ```
### GroupApi ### GroupApi
...@@ -120,6 +127,12 @@ assertNotNull(events); ...@@ -120,6 +127,12 @@ assertNotNull(events);
List<Group> groups = gitLabApi.getGroupApi().getGroups(); List<Group> groups = gitLabApi.getGroupApi().getGroups();
``` ```
### IssuesApi
```java
// Get a list of issues for the specified project ID
List<Issue> issues = gitLabApi.getIssuesApi().getIssues(1234);
```
### JobApi ### JobApi
```java ```java
// Get a list of jobs for the specified project ID // Get a list of jobs for the specified project ID
......
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