Creating z/OS® Connect APIs
Installing the z/OS® Connect EE API Editor into your Eclipse environment adds a perspective that allows you to create a z/OS® Connect EE API Project.
The z/OS® Connect EE API Editor is an Eclipse-based workstation tool that you install into IBM® Explorer for z/OS® to create REST APIs. Once the editor is installed into your Eclipse environment, a new perspective is available that allows you to create a z/OS® Connect EE API Project, using the menu option.
The editor can be downloaded from the IBM® Mainframe Developer Center. Documentation for z/OS Connect and the z/OS Connect EE API editor is provided by IBM® Knowledge Center.
The API editor allows you to define the URL for your APIs, including path parameters and query strings. For example:
Each API must be associated with a service. For File Manager APIs, service archive files called fmService.sar, fmIMSService.sar, and fmDB2Service.sar are provided for this purpose. The service archive files are copied to a location accessible from your Eclipse environment during installation of the File Manager Service Provider for z/OS Connect (see the File Manager Customization Guide).
Alternatively, you can create your own service archives (SAR files) using the provided File Manager Build Toolkit plug-in.
During API creation, you must associate the API with a File Manager service. Click the Service button and navigate to a File Manager service archive file on your file system:
You can map data provided by the API caller into the JSON request schema expected by the File Manager Service Provider.
In Figure 3, the path parameters for file name and template name, and the query parameter for timeout, have been mapped to the request schema. API creators can map as little or as much of the request schema as required. Whatever is not mapped must be provided in the HTTP request body by the client issuing the REST API call.
New APIs can be deployed to your z/OS Connect WebSphere Liberty Profile (WLP) environment using the
menu option.