Importing OpenAPI Specifications

The selection phase of the OpenAPI Import Wizard enables you to specify appropriate Jade names for the items being imported.

When generating REST API proxy classes based on an OpenAPI specification:

When you have imported the OpenAPI specification, Jade classes, methods, properties, and constants are generated for the items selected from the specification. For details about the abstract grouping class names, see "Abstract Grouping Classes", in Chapter 4 of the External Interface Developer's Reference.

The OpenAPI Import Wizard is a wizard‑style dialog that consists of five steps, each represented by a sheet of the dialog. Use the Next > and < Back buttons to navigate forwards or backwards through the steps. Other than the first and last steps, each step provides default values that enable you to move to the next step.

OpenAPI objects are generated as subclasses of the JadeRestProxy class.

Some generated objects may have no properties or fewer properties than expected. This can be because the properties were not defined in the imported OpenAPI specification. If the missing properties are supplied in the response JSON text when you use your OpenAPI client, they are included in the _additionalProperties property of the JadeRestDataModelProxy class.

To import an OpenAPI specification

  1. Select the OpenAPI command from the Components menu. The OpenAPI submenu is then displayed.

  2. Select the Import command from the OpenAPI submenu of the Components menu or right‑click on the OpenAPI sheet and then select the Import command from the context (popup) menu.

The OpenAPI Import Wizard, which is then displayed, systematically guides you through the import process. When all of the information has been gathered, the wizard generates all of the required classes, properties, and methods that you need to access the REST API from Jade.

2020.0.01 and higher