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