Use the API Agent to create,
publish, and test a draft API from an existing OpenAPI document. The tool guides you through
selecting a file, publishing to the Sandbox catalog, and running test cases, helping you validate
your API before deployment.
Procedure
- Log in to API Agent. For more
information, see Getting
started.
- Enter the following prompt:
Create a draft api from @
and select the required
file.
Note: Entering @ after the prompt displays a list of OpenAPI documents available in your
workspace.
- Click Send. The API Connect Task tool
communicates with the API Agent sources
and displays the proposed plan.
- Click Start to view the following options and take the
corresponding actions:
- Download
- Validate
- Publish
- Select the Publish option, and click Send.
The tool displays the proposed plan that shows where the API will be published.
Note: The Sandbox catalog is a default catalog in the API Agent sources.
- Click Start. API Agent displays a
message indicating that the API is published successfully.
- To download the published YAML file, click the download
icon.
- To test the draft API, perform the following actions:
- Create test case
- Run test case