openApi

fun openApi(builder: RootDsl.() -> Unit): OpenAPI

Entrypoint for the Tegral OpenAPI DSL.

This takes a lambda with the RootDsl, from which you can do everything offered by the DSL. This function creates a DSL contxt calls the lambda, builds the OpenAPI object and persists the context.