From 0c748730dda1a652681157477bcaddee3c6dcc2f Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Wed, 10 May 2017 21:46:51 -0700 Subject: [PATCH] Updated for release 4.2.0. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1b910a39..81fdb741 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,12 @@ GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.server.com", "YOUR_PRIVA List projects = gitLabApi.getProjectApi().getProjects(); ``` +As of GitLab4J-API 4.2.0 support been added for GitLab API V4. If your application requires GitLab API V3 you can still use GitLab4J-API by creating your GitLabApi instance as follows: +```java +// Create a GitLabApi instance to communicate with your GitLab server using GitLab API V3 +GitLabApi gitLabApi = new GitLabApi(ApiVersion.V3, "http://your.gitlab.server.com", "YOUR_PRIVATE_TOKEN"); +``` + The API has been broken up into sub APIs classes to make it easier to learn and to separate concerns. Following is a list of the sub APIs along with a sample use of each API. See the Javadocs for a complete list of available methods for each sub API. Available Sub APIs -- GitLab