Feature: Added Code generation based on swagger.json #4
|
@ -4,7 +4,12 @@ import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
|||
import { ValidationPipe } from '@nestjs/common';
|
||||
|
||||
async function setupSwagger(app) {
|
||||
const config = new DocumentBuilder().build();
|
||||
const config = new DocumentBuilder()
|
||||
.setTitle('Tickets API')
|
||||
.setDescription('Description of the API')
|
||||
.setVersion('0.0.0')
|
||||
.addTag('tickets')
|
||||
.build();
|
||||
const document = SwaggerModule.createDocument(app, config);
|
||||
SwaggerModule.setup('api', app, document);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue