Testing Single Response

The copybooks have been mapped. The catlgapi has been deployed. The results of these actions can be tested in a browser using a URL that is your IP Address:Port/api/explorer. The browser will display Liberty REST APIs page.

The new API mapped in z/OS Connect displays.

  1. Select the List Operations link. The API will display with the GET method displaying the API.

    The URL will produce a list of the methods when the List Operations link is selected. The mapped API displays adjacent to the GET method button.

    Figure 344. REST API GET Method
  2. Select the GET method button and the Response Operation for DK1APIC1-Con will display .

    Selecting the GET button opens up the Response Class and displays null output for the mapped Response fields.

    Figure 345. GET button response operation
  3. In the itemsID enter the value “20” for one of the items listed in the EXMPCAT table currently loaded in the VTS-TSR for API001.
  4. Select the Try it Out! button. The mapped copybook will display the results mapped for the ItemsID with the OUT_RESPONSE_MESSAGE that the operation was successful, and the related data.

    The OUT_RESPONSE_MESSAGE reads "TBAPI: API request successful". The data for all the fields mapped is populated with the information for CA_ITEM_REF 20.

    Figure 346. Successful Output Response