Skip to content

Commit

Permalink
πŸ“ docs: apiresponse status 201 정상화
Browse files Browse the repository at this point in the history
  • Loading branch information
swkim12345 committed Dec 4, 2024
1 parent 3e0ce69 commit 86d4d27
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/backend/src/alarm/alarm.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import {
Delete,
UseGuards,
} from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiParam } from '@nestjs/swagger';
import {
ApiOkResponse,
ApiOperation,
ApiParam,
ApiResponse,
} from '@nestjs/swagger';
import { AlarmService } from './alarm.service';
import { AlarmRequest } from './dto/alarm.request';
import { AlarmResponse, AlarmSuccessResponse } from './dto/alarm.response';
Expand All @@ -25,7 +30,8 @@ export class AlarmController {
summary: 'μ•Œλ¦Ό 생성',
description: '각 정보에 λ§žλŠ” μ•Œλ¦Όμ„ μƒμ„±ν•œλ‹€.',
})
@ApiOkResponse({
@ApiResponse({
status: 201,
description: 'μ•Œλ¦Ό 생성 μ™„λ£Œ',
type: AlarmResponse,
})
Expand Down Expand Up @@ -64,7 +70,8 @@ export class AlarmController {
summary: 'λ“±λ‘λœ μ•Œλ¦Ό μ—…λ°μ΄νŠΈ',
description: 'μ•Œλ¦Ό 아이디 κΈ°μ€€μœΌλ‘œ μ—…λ°μ΄νŠΈλ₯Ό ν•  수 μžˆλ‹€.',
})
@ApiOkResponse({
@ApiResponse({
status: 201,
description: '아이디와 λ™μΌν•œ μ•Œλ¦Ό μ—…λ°μ΄νŠΈ',
type: AlarmResponse,
})
Expand Down

0 comments on commit 86d4d27

Please sign in to comment.