Skip to content

Files

Latest commit

 

History

History

finish

JAX-RS server with OpenAPI using Open Liberty

Overview

This server was generated by the OpenAPI Generator project. By using an OpenAPI-Spec, you can easily generate a server stub.

This is an example of building a OpenAPI-enabled JAX-RS server. This example uses the JAX-RS framework and the Eclipse-MicroProfile-OpenAPI addition.

The pom file is configured to use Open Liberty as application server.

To start the server with maven, run this command:

mvn install liberty:start-server

The OpenAPI specification is available at:

http://localhost:9080/openapi

A UI for this OpenAPI Specification is available at:

http://localhost:9080/openapi/ui

When you are done stop Open Liberty with:

mvn liberty:stop-server