Skip to content

Commit

Permalink
fix swagger setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AfrarJahin committed Nov 13, 2023
1 parent 9fcaad1 commit c8da978
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api-server-nestjs/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c8da978

Please sign in to comment.