$ npm install --save @nestjs/swagger
...
const config = new DocumentBuilder()
.setTitle('Kakao login on NestJS framework')
.setDescription('The OAuth login starter API description')
.setVersion('1.0')
.addTag('nestjs-kakaologin')
.build();
const document = SwaggerModule.createDocument(app, config);
SwaggerModule.setup('api', app, document);
...
참고)
{"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm92aWRlciI6Imtha2FvIiwiaWQiOjI2MTQ3OTQyNTQsInVzZXJuYW1lIjoi7JiB6riwIiwiaWF0IjoxNjc0OTk3NTExLCJleHAiOjE2NzQ5OTc1NzF9.9oUiBRsSXNtF977XHUgfSy4I9tYlznGQfYaZN4fNBZg"}