SimplyRESTful-jetty

Easily deploy your SimplyRESTful API on Jetty

Лицензия

Лицензия

Категории

Категории

Jetty Контейнер Application Servers
Группа

Группа

com.github.arucard21.simplyrestful
Идентификатор

Идентификатор

simplyrestful-jetty
Последняя версия

Последняя версия

0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

SimplyRESTful-jetty
Easily deploy your SimplyRESTful API on Jetty
Ссылка на сайт

Ссылка на сайт

https://github.com/arucard21/SimplyRESTful-jetty
Система контроля версий

Система контроля версий

https://github.com/arucard21/SimplyRESTful-jetty/tree/master

Скачать simplyrestful-jetty

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.arucard21.simplyrestful/simplyrestful-jetty/ -->
<dependency>
    <groupId>com.github.arucard21.simplyrestful</groupId>
    <artifactId>simplyrestful-jetty</artifactId>
    <version>0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.arucard21.simplyrestful/simplyrestful-jetty/
implementation 'com.github.arucard21.simplyrestful:simplyrestful-jetty:0.5'
// https://jarcasting.com/artifacts/com.github.arucard21.simplyrestful/simplyrestful-jetty/
implementation ("com.github.arucard21.simplyrestful:simplyrestful-jetty:0.5")
'com.github.arucard21.simplyrestful:simplyrestful-jetty:jar:0.5'
<dependency org="com.github.arucard21.simplyrestful" name="simplyrestful-jetty" rev="0.5">
  <artifact name="simplyrestful-jetty" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.arucard21.simplyrestful', module='simplyrestful-jetty', version='0.5')
)
libraryDependencies += "com.github.arucard21.simplyrestful" % "simplyrestful-jetty" % "0.5"
[com.github.arucard21.simplyrestful/simplyrestful-jetty "0.5"]

Зависимости

compile (9)

Идентификатор библиотеки Тип Версия
org.apache.cxf : cxf-rt-transports-http-jetty jar 3.2.0
org.apache.cxf : cxf-rt-frontend-jaxrs jar 3.2.0
org.apache.cxf : cxf-rt-rs-service-description-swagger jar 3.2.0
org.apache.cxf : cxf-rt-rs-extension-search jar 3.2.0
org.webjars : swagger-ui jar 2.2.6
ch.qos.logback : logback-classic jar 1.2.1
org.hibernate : hibernate-validator jar 5.4.0.Final
org.glassfish : javax.el jar 3.0.1-b08
dk.nykredit.jackson.dataformat : jackson-dataformat-hal jar 1.0.1

Модули Проекта

Данный проект не имеет модулей.

SimplyRESTful-jetty

License Maven Central

DEPRECATED: This has been renamed to SimplyRESTful-cxf and moved to the main SimplyRESTful repository

A quick way to deploy your SimplyRESTful API on Jetty

Provides the configuration required to deploy a SimplyRESTful API on a Jetty server with Apache CXF. This should provide a quick and easy way to get your API working, but it isn't likely to be suited for production environments. If you wish to use Jetty in your production environment, you can copy the code from this library and customize it as needed.

The configuration makes all JAX-RS resources available under the root (e.g. https://hostname/apiresource)The configuration includes generation of an OpenAPI Specification file at /swagger.json. It enables Swagger-UI as well at /api-docs. You can access Swagger-UI with /api-docs?url=../swagger.json so it automatically loads the generated OpenAPI Specification file.

Usage

To use it, in your project you have to:

  • Depend on SimplyRESTful and SimplyRESTful-jetty
  • Implement your SimplyRESTful API
  • Create a class with a main method that calls Server myServer = new APIServer(JAXRSWebResource.class) where JAXRSWebResource.class is the JAX-RS Web Resource you implemented (which extends WebResourceBase). This will deploy your Web Resource on http://localhost:9000/, though this address can be customized. You can stop the running server with myServer.destroy().

See the SimplyRESTful-example project for simple examples of different SimplyRESTful API deployment methods.

Версии библиотеки

Версия
0.5
0.4
0.3
0.2