#1 feat: reservation_id로 예약 존재 여부 조회 API 추가#21
Merged
Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 Walkthrough예약 존재 여부 확인 API 추가이 PR에서는 특정 예약이 데이터베이스에 존재하는지 빠르게 확인할 수 있는 새로운 API 엔드포인트를 추가합니다. 컨트롤러와 서비스 계층이 협력하여 변경 사항예약 존재 여부 확인 기능
🎯 1 (Trivial) | ⏱️ ~3 분 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 개요
Issue Number: #1
🪐 주요 변경 사항
GET /api/v1/bookings/{reservation_id}/existsAPI 추가✅ 상세 내용
reservation_id로 예약 존재 여부를 조회하는 API 구현{ "exists": true }, 없으면{ "exists": false }응답JpaRepository.existsById()를 활용하여 DB 조회🔔 참고 사항
변경 목적: 외부 자동화 워크플로우(e.g., n8n)에서 예약의 유효성을 검증하기 위해 reservation_id로 예약 존재 여부를 조회할 수 있는 API 엔드포인트를 추가합니다.
주요 변경 내용:
ReservationController에GET /api/v1/bookings/{reservation_id}/exists엔드포인트 추가 →{"exists": true/false}형태로 응답ReservationService에existsReservation(Long reservationId)메서드 추가 →reservationRepository.existsById(reservationId)호출로 구현영향 범위: API 변경 (새로운 조회 엔드포인트 추가)