All Projects → uwolfer → Gerrit Rest Java Client

uwolfer / Gerrit Rest Java Client

Licence: apache-2.0
Java REST client for Gerrit Code Review

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Gerrit Rest Java Client

Rest
REST API generator with Node.js, Express and Mongoose
Stars: ✭ 1,663 (+1150.38%)
Mutual labels:  rest
Owasp Orizon
Owasp Orizon is a source code static analyzer tool designed to spot security issues in Java applications.
Stars: ✭ 130 (-2.26%)
Mutual labels:  code-review
Tipple
A lightweight dependency-free library for fetching data over REST with React.
Stars: ✭ 133 (+0%)
Mutual labels:  rest
Resource Router Middleware
🚴 Express REST resources as middleware mountable anywhere
Stars: ✭ 124 (-6.77%)
Mutual labels:  rest
Typescript Rest Swagger
Swagger tools for typescript-rest
Stars: ✭ 129 (-3.01%)
Mutual labels:  rest
Swagger Inflector
Stars: ✭ 131 (-1.5%)
Mutual labels:  rest
Vscode Pull Request Github
GitHub Pull Requests for Visual Studio Code
Stars: ✭ 1,769 (+1230.08%)
Mutual labels:  code-review
Sandman2
Automatically generate a RESTful API service for your legacy database. No code required!
Stars: ✭ 1,765 (+1227.07%)
Mutual labels:  rest
Rest Easy
A simple REST client for Firefox
Stars: ✭ 129 (-3.01%)
Mutual labels:  rest
Restful React
A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
Stars: ✭ 1,814 (+1263.91%)
Mutual labels:  rest
Zoomhub
Share and view high-resolution images effortlessly
Stars: ✭ 122 (-8.27%)
Mutual labels:  rest
Watsonwebserver
Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
Stars: ✭ 125 (-6.02%)
Mutual labels:  rest
Redmine Net Api
.Net API for Redmine bug/task management systems.
Stars: ✭ 131 (-1.5%)
Mutual labels:  rest
Api
🚀 GraphQL & REST APIs to explore all the rockets, launches & other SpaceX's data
Stars: ✭ 123 (-7.52%)
Mutual labels:  rest
Httpexpect
End-to-end HTTP and REST API testing for Go.
Stars: ✭ 1,821 (+1269.17%)
Mutual labels:  rest
Jsonapi Vuex
Use a JSONAPI api with a Vuex store, with data restructuring/normalization.
Stars: ✭ 123 (-7.52%)
Mutual labels:  rest
Jersey Jwt
Example of REST API with JWT authentication using Jersey, Jackson, Undertow, Weld, Hibernate and Arquillian.
Stars: ✭ 131 (-1.5%)
Mutual labels:  rest
Nodejsscan
nodejsscan is a static security code scanner for Node.js applications.
Stars: ✭ 1,874 (+1309.02%)
Mutual labels:  code-review
Go Codon
Workflow based REST framework code generator
Stars: ✭ 133 (+0%)
Mutual labels:  rest
Rind
DNS server with REST interface for records management built on Golang
Stars: ✭ 132 (-0.75%)
Mutual labels:  rest

gerrit-rest-java-client

Linux Build Windows Build Coverage Status Quality Gate Maintainability Rating Maven Central

Introduction

Java implementation of the Gerrit Code Review Tool REST API.

Only Gerrit 2.6 or newer is supported (missing / incomplete REST API in older versions).

This implementation is used for example as base for the Gerrit IntelliJ Plugin.

Many different authentication-methods are supported (HTTP basic, HTTP digest, LDAP with form, HTTP password from Gerrit setting, ...).

Usage

This library implements com.google.gerrit.extensions.api.GerritApi.

You just need a few lines to get it working:

GerritRestApiFactory gerritRestApiFactory = new GerritRestApiFactory();
GerritAuthData.Basic authData = new GerritAuthData.Basic("http://localhost:8080");
// or: authData = new GerritAuthData.Basic("https://example.com/gerrit", "user", "password");
GerritApi gerritApi = gerritRestApiFactory.create(authData);
List<ChangeInfo> changes = gerritApi.changes().query("status:merged").withLimit(10).get();

If you like to write a script instead of a full Java application, you might want to use Groovy. There is a basic Groovy example available.

Note: It is not guaranteed that all interfaces are implemented. If an implementation is missing, you get a com.google.gerrit.extensions.restapi.NotImplementedException. Feel free to implement it and create a pull request at GitHub - it is quite easy! :)

Note: The source of com.google.gerrit.extensions is included in this repository at the moment because not all extensions to this API are merged into Gerrit repository yet.

Maven Artifact

Releases are available with Maven:

<dependency>
    <groupId>com.urswolfer.gerrit.client.rest</groupId>
    <artifactId>gerrit-rest-java-client</artifactId>
    <version>0.9.3</version>
</dependency>

Android Support

Apache HttpClient causes problems on Android platform. There is a workaround by using HttpClient for Android. Android support builds are not officially released, but you should be able to create your own build by using the httpclient-android branch. You probably want to merge master branch into this branch before building it.

Dependencies

This library depends on Apache HttpClient, Gson and Guava.

Your Support

If you like this library, you can support it:

  • Star it: Star it at GitHub. GitHub account required.
  • Improve it: Report bugs or feature requests. Or even fix / implement them by yourself - everything is open source!
  • Donate: You can find donation-possibilities at the bottom of this file.

Donations

If you like this work, you can support it with this donation link. If you don't like Paypal (Paypal takes 2.9% plus $0.30 per transaction fee from your donation), please contact me. Please only use the link from github.com/uwolfer/gerrit-intellij-plugin to verify that it is correct.

Copyright and license

Copyright 2013 - 2018 Urs Wolfer

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].