Skip to content

Commit

Permalink
Merge pull request #6 from wang-bam-bbang/docs
Browse files Browse the repository at this point in the history
docs: update swagger docs
  • Loading branch information
Kimcheolhui authored Dec 1, 2024
2 parents 127e203 + 21d9d63 commit 1e02abc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';

@ApiTags('app')
@Controller()
export class AppController {
@ApiOperation({
summary: 'health check',
description: 'health check',
})
@Get()
getHello(): Record<string, any> {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/comment/comment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
ApiUnauthorizedResponse,
} from '@nestjs/swagger';

@ApiTags('comment')
@ApiTags('Comment')
@Controller('comment')
export class CommentController {
constructor(private commentService: CommentService) {}
Expand Down
2 changes: 2 additions & 0 deletions src/image/image.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ import {
ApiInternalServerErrorResponse,
ApiOkResponse,
ApiOperation,
ApiTags,
ApiUnauthorizedResponse,
} from '@nestjs/swagger';
import { IdPGuard } from 'src/user/guard/idp.guard';
import { GetUser } from 'src/user/decorator/get-user.decorator';
import { User } from '@prisma/client';

@ApiTags('Image')
@Controller('image')
export class ImageController {
constructor(private imageService: ImageService) {}
Expand Down
2 changes: 1 addition & 1 deletion src/post/post.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
ApiUnauthorizedResponse,
} from '@nestjs/swagger';

@ApiTags('post')
@ApiTags('Post')
@Controller('post')
export class PostController {
constructor(private postService: PostService) {}
Expand Down
2 changes: 1 addition & 1 deletion src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
ApiUnauthorizedResponse,
} from '@nestjs/swagger';

@ApiTags('user')
@ApiTags('User')
@Controller('user')
export class UserController {
constructor(private userService: UserService) {}
Expand Down

0 comments on commit 1e02abc

Please sign in to comment.