Skip to content

Cerces


Cerces / docs / createSwaggerHTML

Function: createSwaggerHTML() ​

createSwaggerHTML(url, options?): `<!DOCTYPE html>${string}</html>`

Defined in: src/docs.ts:7

Creates the HTML for the Swagger UI.

Parameters ​

url ​

string

The URL of the OpenAPI/Swagger specification.

options? ​

Optional parameters for customizing the Swagger UI.

title? ​

string

jsUrl? ​

string

cssUrl? ​

string

faviconUrl? ​

string

parameters? ​

Record<string, any>

Returns ​

`<!DOCTYPE html>${string}</html>`

The HTML string for the Swagger UI.