Swagger Options¶
Import: import system.webapi;
See the Web APIs guide for runnable examples, lifecycle, and error behavior.
SwaggerOptions¶
Swagger UI assets and browser behavior. Asset URLs may point to self-hosted files.
js_url¶
URL of the Swagger UI script.
css_url¶
URL of the Swagger UI stylesheet.
redoc_js_url¶
URL of the ReDoc script.
oauth_redirect_url¶
Redirect URL used after authorization from Swagger UI.
deep_linking¶
Whether Swagger UI gives operations their own URL fragments.
persist_authorization¶
Whether Swagger UI retains authorization between reloads.
try_it_out_enabled¶
Whether Swagger UI enables interactive requests by default.
oauth_client_id¶
Client identifier used by the API documentation's OAuth flow.
oauth_use_pkce¶
Whether the documentation's OAuth flow uses PKCE.
constructor¶
Creates a SwaggerOptions with js_url, https, css_url, https, redoc_js_url, https, oauth_redirect_url, deep_linking, persist_authorization, try_it_out_enabled, oauth_client_id, oauth_use_pkce.
public constructor(
js_url: string = "https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js",
css_url: string = "https://unpkg.com/swagger-ui-dist@5/swagger-ui.css",
redoc_js_url: string = "https://cdn.jsdelivr.net/npm/redoc@2/bundles/redoc.standalone.js",
oauth_redirect_url: string = "",
deep_linking: bool = true,
persist_authorization: bool = false,
try_it_out_enabled: bool = false,
oauth_client_id: string = "",
oauth_use_pkce: bool = true
)