SimplyRESTful-jetty

Easily deploy your SimplyRESTful API on Jetty

License

License

Categories

Categories

Jetty Container Application Servers
GroupId

GroupId

com.github.arucard21.simplyrestful
ArtifactId

ArtifactId

simplyrestful-jetty
Last Version

Last Version

0.5
Release Date

Release Date

Type

Type

jar
Description

Description

SimplyRESTful-jetty
Easily deploy your SimplyRESTful API on Jetty
Project URL

Project URL

https://github.com/arucard21/SimplyRESTful-jetty
Source Code Management

Source Code Management

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

Download simplyrestful-jetty

How to add to project

<!-- 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"]

Dependencies

compile (9)

Group / Artifact Type Version
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

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.5
0.4
0.3
0.2