Generating OpenAPI Specifications from Jade REST APIs

You can generate OpenAPI specifications from Jade REST APIs, which enables you to automatically generate descriptions for all of the methods that are part of the API and any classes that are required by the API. In addition, you can customize descriptive elements such as the info section.

The ISO 8601 format functionality is displayed on the Web Options sheet of the dialog only when the application selected in the Application Type list box on the Application sheet of this dialog is Rest Services or Rest Services, Non‑Gui. For details, see "ISO 8601 Date and Time Support", elsewhere in this chapter.

Use the Jade OpenAPI Generation Wizard to generate an OpenAPI specification from a Jade REST class and any additional documentation set in the wizard. To open the wizard for a REST class, click the Generate OpenAPI button on the Web Options sheet of the Define Application dialog, shown in the following image.

The OpenAPI Generation Wizard is then opened for the class selected in the Rest Service Class list box. There are four steps in the wizard, but all information required for the generation of a valid OpenAPI specification can be determined from the definition of the REST class and any entities that reference it, so it has valid default values.

The default value of "/" for the "servers" section is valid for the OpenAPI specification but not sufficient to allow a consumer of the specification to access your REST API. You can set the server value by including it in the documentation text of the REST API class (see "Setting Default Values for API Documentation Information") or on the Servers sheet of the OpenAPI Generation Wizard (see "Specifying or Maintaining the Server Descriptions").

You can click:

For details about specifying the OpenAPI specification, see the following subsections.

Alternatively, you can use the REST OpenAPI classes summarized in the following table. (For details, see Volume 1 of the Encyclopaedia of Classes.)

Class Description
JadeOpenAPI Abstract grouping class for classes relating to the Jade OpenAPI Generator
       JadeOpenAPIGenerator JadeOpenAPI subclass for generating OpenAPI specifications programmatically

2020.0.02 and higher

For details about the proxy class generator that consumes an OpenAPI specification of a REST API and generates the appropriate data model and resource proxy classes, see "Maintaining OpenAPI Objects", in Chapter 16 of the Development Environment User's Guide.