saveSpecToRestClass

saveSpecToRestClass(spec:    String; 
                    version: String);

The saveSpecToRestClass method of the JadeOpenAPIGenerator class saves a specification and version number to the REST class associated with the OpenAPI generator, using the parameters listed in the following table.

Parameter Description
spec OpenAPI specification to associate with the REST class
version Semantic version number to associate with the REST class

This method enables you to associate a specification to the class it describes, as well as record a version number of the specification so that you can track changes to the specification over time.

If this method is not called from transaction state, exception 1048 (Update outside transaction) is raised.

The associated specification and version persist on the class through termination of the REST application, database shutdown, and reorganization, but are not extracted when a schema is extracted.

2020.0.02 and higher