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.xml
intowlp/usr/servers/myServer
- Copy the file
oas3-airlines/deployment_artifacts/airlines.war
intowlp/usr/servers/myServer/apps
- Copy the directory
oas3-airlines/deployment_artifacts/custom
intowlp/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/explorer
to see the OpenAPI UI