Testing an API with the assembly test tool
IBM® API Connect provides a test environment for you to ensure that your APIs are defined and implemented correctly.
Before you begin
If you want to test an API offline, API Connect provides the
following options:
- Call the API in the Local Test Environment with a cURL command, as described in Testing an API with the Local Test Environment.
- Invoke the API from the locally installed API Designer UI application running in Online mode as described in the following sections.
About this task
You can complete this task either by using either the API Designer UI application, or by using the browser based API Manager UI.
Note:
- If you are testing an API that contains references to API properties, only those references that are defined inside the API assembly are resolved and replaced with their corresponding values when you invoke the API in the assembly test tool; property references that are defined outside of the API assembly are not resolved. For more information on API properties, see Setting API properties.
- Due to Cross-Origin Resource Sharing (CORS) restrictions, the assembly test tool cannot be used with the Chrome or Safari browsers on the macOS Catalina platform.
Procedure
To test an API, complete the following steps.