You can deploy a web project to a Liberty
server or a WebSphere® Application Server
traditional server. You can view the published application programming interface (API)
definition file in a web browser.
Before you begin
Define or specify your REST API by creating the openapi.json or
openapi.yaml file. For more information about creating the file, see Creating a REST API definition file.
Procedure
-
Configure the server.xml file to enable the runtime environment to look
for the openapi.json or openapi.yaml file.
-
Start the server.
-
In the Servers view, right-click on the Liberty server and select .
The previous steps also apply to Open API 2.0 (Swagger 2.0) files except that the files are
called swagger.json or swagger.yaml.
-
Select your web project, click Add,
and then click Finish.
-
To view the REST API definition file, open a browser window
and go to https://localhost:9443/ibm/api/explorer/.