Initializes the OpenAPI router with the specified configuration. Sets up routes for serving the OpenAPI specification in JSON and YAML formats, as well as configuring the Swagger UI endpoint.
If setup is called more than once on the same instance
The method performs the following:
A router class for serving OpenAPI documentation via Express. Handles both UI presentation and raw spec file serving in JSON/YAML formats.
Example
Remarks
The router must be setup using the setup method before it can be used. The setup method can only be called once per instance.