Deploying an API requester WAR file
Deploy, update, or remove your zosConnect-3.0 API requester dynamically when you add or remove API requester WAR files from the z/OS Connect Server applications directory.
About this task
zosConnect-3.0 Applies to zosConnect-3.0.
Started task Applies to z/OS Connect Servers run by using a z/OS started task procedure.
An API requester is a Liberty web application and can be deployed, and managed in the same way as any other web application running in Liberty. This section explains deploying, updating, and removing an API requester.
Deploying a z/OS Connect API requester
Before you begin
- Configured a connection from the z/OS Connect Server with the zosConnect-3.0 feature to the API endpoint. For more information, see Configuring a connection from IBM z/OS Connect to the API endpoint
- Built the API requester WAR file. For more information, see Building an API requester WAR file
About this task
Deploy your zosConnect-3.0 API requester when you add the API requester WAR into the z/OS Connect Server applications directory.
You can configure z/OS Connect to deploy API requesters when you copy your API requester
WAR file as a binary file to a UNIX System Service directory accessible by the
z/OS Connect Server; typically the server's application directory. For example, you can
either use ${server.config.dir}/apps or ${shared.app.dir}, and
define a webApplication element in the server.xml. For more
information on the webApplication element for API requesters, see Configuring zosConnect-3.0 to support API requesters.
contextRoot must be unique across your deployed
WAR files within one z/OS Connect Server. The contextRoot
attribute must not be specified on the webApplication element for API requester
WAR files. When the API requester is built, the
contextRoot value is set in both the WAR file and the
generated COBOL copybooks or PL/I include files. These values must match, so the
contextRoot value must not be changed when the API requester
WAR file is deployed to the z/OS Connect Server. If you want to use a different
contextRoot, you can use apiName property when running the API requester
Gradle plug-in to do so.
For more
information about Gradle plug-in properties and
options on apiName, see The API requester Gradle plug-in properties and options.
Procedure
Removing API requester
About this task
Remove your zosConnect-3.0 API requester when you remove the API requester WAR file from the z/OS Connect Server applications directory.
Procedure
Updating an API requester
About this task
To update an existing zosConnect-3.0 API requester: