Defining resources, models, and operations in a REST API by using the OpenAPI editor
Use the OpenAPI Editor to graphically define resources, models, and operations in a REST API.
Before you begin
About this task
Use the sections in the OpenAPI Editor to define your REST API.
The OpenAPI Editor has a Navigation view to position into the various objects of the OAI3 document and to create and delete those objects. Selecting an object in the Navigation view displays a Form View where you can view, create, and change the content of that object. There is also a Source View, which you can use to display the raw OpenAPI 3.0 document. The Source View is accessed by clicking the Source View icon.
Procedure
To define resources, models, and operations in a REST API, complete the following steps:
- Click Edit API document in OpenAPI Editor to open the OpenAPI editor in a separate window.
- Click the '+' sign next to Path to open the Path editor
- Enter a path name into the field.
- Optional: Enter a summary in the field.
- Optional: Enter a description in the field.
- Click Create to create the OpenAPI 3.0 document.
- Click the '+' sign next to Operations to add an operation.
- Select an operation from the menu.
- Optional: Enter a summary in the field.
- Optional: Enter a description in the field.
- Click Create to create the operation.
- Click Save to save the operation.
- Continue to update the REST API by adding items from the list of components, such as Servers, Tags, Parameters.
- When you finish updating the RESTAPI, click Save.
- Close the OpenAPI editor. If you return to the IBM App Connect Enterprise Toolkit, you can see that the Resources and Operations section of the RESTAPI is now populated.