Skip to content

Commit

Permalink
스웨거 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
vvans committed Nov 22, 2023
1 parent 953f6bf commit 6cbe7ac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion BE/musicspot/src/journey/journey.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ export class JourneyController {
async create(@Body() startJourneyDTO: StartJourneyDTO) {
return await this.journeyService.create(startJourneyDTO);
}

@ApiOperation({
summary: '여정 종료를 눌렀을 시 실행되는 API',
description: 'request로 id값이 필요합니다',
})
@ApiCreatedResponse({
description: '현재는 좌표 데이터의 길이를 반환, 추후 참 거짓으로 변경 예정',
type: Journey,
})
@Post('end')
async end(@Body() endJourneyDTO: EndJourneyDTO) {
return await this.journeyService.end(endJourneyDTO);
Expand Down

0 comments on commit 6cbe7ac

Please sign in to comment.