Skip to content

SwaggerModule

@tsed/swagger

Usage

typescript
import { SwaggerModule } from "@tsed/swagger";

See /packages/specs/swagger/src/types/SwaggerModule.ts.

Overview

ts
class SwaggerModule extends OpenAPIBaseModule {
    readonly name = "Swagger";
    readonly rootDir: string;
    get settings(): ({
        disableSpec: boolean;
        path: string;
        fileName: string;
        cssPath: string;
        viewPath: string;
    } & SwaggerSettings)[];
    protected createRouter(conf: SwaggerSettings): import("@tsed/platform-router").PlatformRouter;
    protected getUrls(): any[];
}

readonly name

ts
readonly name = "Swagger";

readonly rootDir

ts
readonly rootDir: string;

get settings

ts
get settings(): ({
     disableSpec: boolean;
     path: string;
     fileName: string;
     cssPath: string;
     viewPath: string;
 } & SwaggerSettings)[];

protected createRouter

ts
protected createRouter(conf: SwaggerSettings): import("@tsed/platform-router").PlatformRouter;

protected getUrls

ts
protected getUrls(): any[];

Released under the MIT License.