Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.33 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.33 KB

Airlines App

Introduction

This app demonstrates how the OpenAPI feature can be used along with JAXRS annotations to document your REST APIs in a neat and organized manner. You can specify the following with the OpenAPI feature:

  • Available endpoints and operations on each endpoint
  • Operation parameters Input and output for each operation
  • Authentication methods
  • Contact information, license, terms of use and other information.

Getting Started

  1. Clone this repository
git clone https://github.com/microservices-api/oas3-airlines.git
  1. Download the Liberty jar and decompress
  2. Create a new server called myServer by running the following commands
$ cd wlp/bin
$ ./server create myServer
  1. Copy the file oas3-airlines/deployment_artifacts/server.xml into wlp/usr/servers/myServer
  2. Copy the file oas3-airlines/deployment_artifacts/airlines.war into wlp/usr/servers/myServer/apps
  3. Copy the directory oas3-airlines/deployment_artifacts/custom into wlp/usr/servers/myServer
  4. Install the needed features by running
$ ./installUtility install --acceptLicense myServer
  1. Start the server by running
$ ./server start myServer
  1. Open a browser and navigate to http://<your_host>/api/explorer to see the OpenAPI UI