https://github.com/confluentinc/rest-utils
Utilities and a small framework for building REST services with Jersey, Jackson, and Jetty.
https://github.com/confluentinc/rest-utils
Last synced: 19 days ago
JSON representation
Utilities and a small framework for building REST services with Jersey, Jackson, and Jetty.
- Host: GitHub
- URL: https://github.com/confluentinc/rest-utils
- Owner: confluentinc
- License: apache-2.0
- Created: 2014-12-11T17:33:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-05-29T06:51:05.000Z (about 2 years ago)
- Last Synced: 2024-05-29T07:22:10.377Z (about 2 years ago)
- Language: Java
- Size: 13.8 MB
- Stars: 124
- Watchers: 283
- Forks: 209
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-java - Confluent REST Utils
README
Confluent REST Utils
====================
Confluent REST Utils provides a small framework and utilities for writing Java
REST APIs using Jersey, Jackson, Jetty, and Hibernate Validator.
See the [`examples/`](examples/) directory for a simple demo service.
Security
--------
The REST `Application` can support both http and https. https is disabled by default. Use the `listeners` configuration
parameter to control which protocol is used.
The https implementation is similar to Kafka, where the server specifies a keystore and trust store. When SSL
client auth is configured, the client must authenticate -- the key in the client's keystore must be trusted by
the server's trust store.
Metrics
-------
One metrics group exists that spans all listeners. Meaning, when using multiple listeners and observing metrics, the
values of each metric are a combination of all listeners. For example, if the maximum latency for a http listener
is 50ms and the maximum latency for a https listener is 100ms, the `request-latency-max` metric will be 100ms, the max
across all listeners.
Contribute
----------
- Source Code: https://github.com/confluentinc/rest-utils
- Issue Tracker: https://github.com/confluentinc/rest-utils/issues
License
-------
The project is licensed under the Apache 2 license.