Deploying an API in the API toolkit
Before you begin
zosConnect-2.0 Applies to zosConnect-2.0.
- From the main menu bar, click .
- In the Preferences wizard, select z/OS Connect.
- Make your changes and click Apply and then OK.
Make any final edits to the Swagger document. For example, you might want to add security and authentication requirements. Manual changes to the Swagger document in the API editor are preserved when saved. To edit the Swagger document with your preferred JSON editor, find the location of the Swagger document by right-clicking the api-docs/ folder of your API project in the Project Explorer view and selecting Properties. The location of the Swagger document is displayed in the Location field.
Ensure that you are connected to the server. For more information, see Connecting to a z/OS Connect server.
About this task
).You can also deploy the API from Project Explorer view, or by using the apideploy command on the server.
Procedure
To deploy the API from the Project Explorer view:
Results
- To see the newly deployed APIs on the server, in the z/OS Connect Servers view, right-click the APIs folder, and select Refresh.
- If you right-click the server itself and select Refresh Server, status for all APIs and services that are deployed on the server is fetched and refreshed.
- Save a copy of the API project in your source control management system.
- The server stores the API in a file with the API name as the file name and a file extension of .aar.