From c8da9787ce9579461a889a1b9ef6197d98de8c7d Mon Sep 17 00:00:00 2001 From: AfrarJahin Date: Mon, 13 Nov 2023 11:49:43 +0600 Subject: [PATCH] fix swagger setup --- api-server-nestjs/src/main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api-server-nestjs/src/main.ts b/api-server-nestjs/src/main.ts index 35a5f8f..2d2a2d9 100644 --- a/api-server-nestjs/src/main.ts +++ b/api-server-nestjs/src/main.ts @@ -11,13 +11,13 @@ const PORT = 5000; async function bootstrap() { const app = await NestFactory.create(AppModule); const options = new DocumentBuilder() - .setTitle('Your API Title') - .setDescription('Your API description') + .setTitle('Budget pro') + .setDescription('Budget pro description') .setVersion('1.0') - .addServer('http://localhost:3000/', 'Local environment') - .addServer('https://staging.yourapi.com/', 'Staging') - .addServer('https://production.yourapi.com/', 'Production') - .addTag('Your API Tag') + .addServer('http://localhost:5000/', 'Local environment') + .addBearerAuth(undefined, 'Apikey') + .addBearerAuth(undefined, 'Authorization') + .addTag('Budget pro Tag') .build(); const document = SwaggerModule.createDocument(app, options);