Button is unavailable with a loading indicator. The project build is
running.
Button is unavailable with an error indicator. The project build failed. Hover
over the button to see error information. For example,
Test the GET /employees/{id} operation.
Click anywhere on the GET /employees/{id} operation bar to expand the
GET /employees/{id} operation.
Figure 2. Information about the GET /employees/{id}
operation to be tested.
Click Try it out.
Figure 3. The location of the Try it out button in the
Liberty server Swagger Editor.
In the Id field, enter 000150.
Figure 4. Populating the Id parameter.
Click Execute.
Figure 5 shows the result of a successful test.Figure 5. Successful test result.
You can also test your API in other REST Clients.
Your API is hosted on your local
workstation from a z/OS Connect server that is
exposed as https://localhost:9443/employees/{id}.
You can use this URL in any REST client of your choice and it
returns successful responses. If a REST client is not available to you, you can use the Swagger
Editor within the Liberty server as demonstrated here. The Liberty server client is part of the
ibm-zcon-designer image.
Results
You successfully tested your API.
What to do next
You can now continue to test with different mappings and explore the power of JSONata. You can explore more complex mappings in the
next section of the tutorial: Define the GET operation for the /employees path.