@mini2/core
Version:
Mini Express Framework - Lightweight and modular Express.js framework with TypeScript support
30 lines • 837 B
TypeScript
import 'reflect-metadata';
import { Express } from 'express';
export interface SwaggerOptions {
title?: string;
description?: string;
version?: string;
servers?: {
url: string;
description?: string;
}[];
docsPath?: string;
jsonPath?: string;
components?: any;
}
export declare class SwaggerIntegration {
private swaggerSpec;
private options;
constructor(options?: SwaggerOptions);
generateSwaggerSpec(controllers: any[]): void;
private generateSummary;
private generateDescription;
private extractControllerTag;
private extractResourceName;
private extractPathParameters;
private generateSchemaFromValidation;
setupSwagger(app: Express): void;
getSwaggerSpec(): any;
}
export default SwaggerIntegration;
//# sourceMappingURL=swagger.d.ts.map