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.
- Clone this repository
git clone https://github.com/microservices-api/oas3-airlines.git
- Download the Liberty jar and decompress
- Create a new server called myServer by running the following commands
$ cd wlp/bin
$ ./server create myServer
- Copy the file
oas3-airlines/deployment_artifacts/server.xmlintowlp/usr/servers/myServer - Copy the file
oas3-airlines/deployment_artifacts/airlines.warintowlp/usr/servers/myServer/apps - Copy the directory
oas3-airlines/deployment_artifacts/customintowlp/usr/servers/myServer - Install the needed features by running
$ ./installUtility install --acceptLicense myServer
- Start the server by running
$ ./server start myServer
- Open a browser and navigate to
http://<your_host>/api/explorerto see the OpenAPI UI