Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dropwizard/dropwizard-protobuf

Support for reading and writing Google Protocol Buffer objects within Dropwizard
https://github.com/dropwizard/dropwizard-protobuf

dropwizard java protobuf protocol-buffers

Last synced: 5 days ago
JSON representation

Support for reading and writing Google Protocol Buffer objects within Dropwizard

Awesome Lists containing this project

README

        

Dropwizard Protobuf
===================
[![Build Status](https://travis-ci.org/dropwizard/dropwizard-protobuf.svg?branch=master)](https://travis-ci.org/dropwizard/dropwizard-protobuf)
[![Maven Central](https://img.shields.io/maven-central/v/io.dropwizard.modules/dropwizard-protobuf.svg?style=flat-square)](https://maven-badges.herokuapp.com/maven-central/io.dropwizard.modules/dropwizard-protobuf/)
[![GitHub license](https://img.shields.io/github/license/dropwizard/dropwizard-protobuf.svg?style=flat-square)](https://github.com/dropwizard/dropwizard-protobuf/tree/master)

`dropwizard-protobuf` is a [Jersey](https://eclipse-ee4j.github.io/jersey/) [JAX-RS Entity Provider](https://www.oracle.com/technical-resources/articles/java/jax-rs.html) that allows reading and writing messages in Google's [Protocol Buffers](https://developers.google.com/protocol-buffers/) format.

Usage
-----

Just add the `ProtocolBundle` to your Dropwizard application inside the [`Application#initialize`](https://javadoc.io/static/io.dropwizard/dropwizard-project/2.0.7/io/dropwizard/Application.html#initialize-io.dropwizard.setup.Bootstrap-) method.

```java
@Override
public void initialize(Bootstrap bootstrap) {
bootstrap.addBundle(new ProtobufBundle());
}
```

Maven Artifacts
---------------

This project is available on Maven Central. To add it to your project simply add the following dependencies to your `pom.xml`:

```xml

io.dropwizard.modules
dropwizard-protobuf
2.0.7-1

```

Support
-------

Please file bug reports and feature requests in [GitHub issues](https://github.com/dropwizard/dropwizard-protobuf/issues).

License
-------

Copyright (c) 2020 Smoke Turner, LLC

This library is licensed under the Apache License, Version 2.0.

See http://www.apache.org/licenses/LICENSE-2.0.html or the LICENSE file in this repository for the full license text.