This is a karaf application that demonstrates using Jersey to provide a REST API in karaf, and demonstrates how OSGi services can be injected into Jersey resources created by the Jersey framework. https://steinar.bang.priv.no/2018/08/03/use-jersey-to-provide-rest-apis-from-karaf-applications/
dependabot[bot] 5051eb3134 Bump jackson-databind from 2.9.10.2 to 2.9.10.3 | преди 4 години | |
---|---|---|
jacoco-coverage-report | преди 4 години | |
jerseyinkaraf.servicedef | преди 4 години | |
jerseyinkaraf.services | преди 4 години | |
jerseyinkaraf.webapi | преди 4 години | |
jerseyinkaraf.webgui | преди 4 години | |
src | преди 6 години | |
.editorconfig | преди 6 години | |
.gitignore | преди 6 години | |
.travis.yml | преди 4 години | |
LICENSE | преди 6 години | |
README.org | преди 5 години | |
pom.xml | преди 4 години |
This is a small apache karaf demo application that demonstrates how to use Jersey in Apache Karaf, and how to inject OSGi services into Jersey resources.
file:https://travis-ci.org/steinarb/jersey-demo.svg?branch=master file:https://coveralls.io/repos/steinarb/jersey-demo/badge.svg file:https://maven-badges.herokuapp.com/maven-central/no.priv.bang.demos.jerseyinkaraf/jersey-demo/badge.svg
file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=ncloc#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=bugs#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=vulnerabilities#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=code_smells#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.demos.jerseyinkaraf%3Ajerseyinkaraf&metric=coverage#.svg
This will cause repeated clicks on the "Increment" button to result in 405 responses, because the webgui servlet now intercepts the requests, but that servlet doesn't support the POST requests used to increment the counter.
Reinstalling the webapi feature will cause the count to start again from 0.
This software project is licensed under Apache License v. 2.
See the LICENSE file for details.