Creating and publishing draft API
Steps to create a draft API using API Assistant.
To create and publish a draft API, complete the following steps:
- Log into API Assistant. For details, see Getting started.
- Enter the following prompt:
and select the required file.Create a draft api from @
Note: Entering @ after the prompt displays a list of OpenAPI documents available in your workspace. - Click Send. The APIConnectTask tool communicates with the API Assistant sources and displays the proposed plan.
- Click Start to can view the following options and take the corresponding actions:
- Download
- Validate
- Publish
- To view the draft API in API Manager, open API Manager, and go to the Develop pane.
- Go to API Assistant,
select the Publish option, and click Send. The
APIConnectTask tool displays the proposed plan where it shows that API is going to get
published into the Sandbox catalog. To view the plan details, expand the arrow icon
.
Note: The Sandbox catalog is a default catalog in the API Assistant sources section. - Click Start. API Assistant displays the publishing successful message.
- To download the published YAML file, click the download icon .
- To invoke the published API, open API Manager, and go to the Manage pane.
- Click Sandbox catalog.
- In the Sandbox window, click the Menu
icon next to the Modified column, and select Manage APIs.
- In the Product APIs window, click the Menu
icon next to the State column, and select View endpoints.
- In the API base endpoints window, you can view the DataPower API Gateway URL.
- Copy the URL and open browser window, and paste the URL, and then press Enter. You can view all the details of set up in the database.