-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* swagger 설정 * 📝 .gitignore에 .env추가 * 📝 Dotenv 설치 * ✨ 실시간 위치 기록 추가 * 🧪 실시간 기록 테스트파일 추가 * ✨ Swagger 추가 실시간 위치 기록 api에 swagger추가
- Loading branch information
Showing
9 changed files
with
129 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
ArrayMaxSize, | ||
ArrayMinSize, | ||
IsArray, | ||
IsNumber, | ||
IsString, | ||
} from 'class-validator'; | ||
|
||
export class RecordJourneyDTO { | ||
@ApiProperty({ | ||
example: '655efda2fdc81cae36d20650', | ||
description: '여정 id', | ||
required: true, | ||
}) | ||
@IsString() | ||
readonly journeyId: string; | ||
|
||
@ApiProperty({ | ||
example: [37.555946, 126.972384], | ||
description: '위치 좌표', | ||
required: true, | ||
}) | ||
@IsArray() | ||
@ArrayMaxSize(2, { message: 'coordinate has only 2' }) | ||
@ArrayMinSize(2, { message: 'coordinate has only 2' }) | ||
@IsNumber({}, { each: true }) | ||
readonly coordinate: number[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters