Check the messages.log file for the following message to confirm that the
service is installed.
BAQR7043I: z/OS Connect service archive stockQuery installed successfully.
Check the messages.log file for the following message to confirm that the
API is installed.
BAQR7000I: z/OS Connect API archive file stockmanager installed successfully.
In the z/OS Connect Servers view of the API toolkit, under the
APIs folder, double-click the stockmanager API.
The API is opened in the API Explorer. If you are not using the API Explorer feature,
select Open in Swagger UI from the context menu.
Click List Operations to see available operations in the API.
Figure 1. Operations in the API
Query the state of the stock with item ID 2033.
Specify a value of 2033 for the item-id and click
GET.
Figure 2. Testing the GET request
Click Try it out!.
Information about the request URL, request headers, response body, response code, and
response headers are provided.
An HTTP response code of 200 is expected with the following
response body:
You verified that your newly created stockmanager API has successfully
called the stock query application by using the stock query service running in IBMz/OS Connect .