Feature: Added Code generation based on swagger.json #4

Merged
igorpropisnov merged 6 commits from feature/generate-api-client into main 2024-05-22 15:48:01 +02:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit e6f3e8f6be - Show all commits

View File

@ -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);
}