Creating an OpenAPI document
Steps to create an Open API document
To create an OpenAPI document, complete the following steps:
- Log into API Assistant. For details, see Getting started.
- Enter the following prompt:
Create an openapi with the table purchaseorder
or
Create an openapi with the table purchaseorder and schema order_demo
Note: The schema name is not mandatory, but it becomes necessary if the table name is not unique.The APIGenerator tool communicates with the API Assistant sources and displays the proposed plan. - Click Start to view the results. To view the plan details, expand the
arrow icon
. The API Assistant generates the OpenAPI document in YAML format.
- Click the download icon to save the YAML file.
- In the VS Code left pane, open Explorer to view the downloaded YAML file.