From a7e93a10641fe317ff8fd048edc432d6d00a6ba6 Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Sun, 17 Sep 2017 23:52:10 -0700 Subject: [PATCH] Added DeployKeysApi and IssuesApi info. --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2d2c0a77..02987b83 100644 --- a/README.md +++ b/README.md @@ -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.4.8' + compile group: 'org.gitlab4j', name: 'gitlab4j-api', version: '4.5.0' } ``` @@ -20,11 +20,11 @@ dependencies { org.gitlab4j gitlab4j-api - 4.4.8 + 4.5.0 ``` -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: Javadocs @@ -78,8 +78,10 @@ The API has been broken up into sub APIs classes to make it easier to learn and Available Sub APIs ------------------   [CommitsApi](#commitsapi)
+  [DeployKeysApi](#deploykeysapi)
  [EventsApi](#eventsapi)
  [GroupApi](#groupapi)
+  [IssuesApi](#issuesapi)
  [JobApi](#jobapi)
  [MergeRequestApi](#mergerequestapi)
  [NamespaceApi](#namespaceapi)
@@ -105,13 +107,18 @@ Date until = new Date(); // now List commits = gitLabApi.getCommitsApi().getCommits(1234, "new-feature", since, until); ``` +### DeployKeysApi +```java +// Get a list of DeployKeys for the authenticated user +List deployKeys = gitLabApi.getDeployKeyssApi().getDeployKeys(); +``` + ### EventsApi ```java // Get a list of Events for the authenticated user Date after = new Date(0); // After Eposc Date before = new Date(); // Before now List events = gitLabApi.getEventsApi().getAuthenticatedUserEvents(null, null, before, after, DESC); -assertNotNull(events); ``` ### GroupApi @@ -120,6 +127,12 @@ assertNotNull(events); List groups = gitLabApi.getGroupApi().getGroups(); ``` +### IssuesApi +```java +// Get a list of issues for the specified project ID +List issues = gitLabApi.getIssuesApi().getIssues(1234); +``` + ### JobApi ```java // Get a list of jobs for the specified project ID -- GitLab