Conversation
- 칵테일 배치 즐겨찾기 토글 API 구현 (POST /api/v2/cocktails/bookmarks/batch) - 사용자가 화면 이탈 시 여러 칵테일을 한 번에 토글 처리 - snake_case JSON 네이밍 전략에 맞춰 DTO 작성 (@JsonProperty) - JWTFilter에 배치 북마크 API 인증 경로 등록 추가 기능: - 테스트용 JWT 토큰 생성 API (TestAuthController) - 테스트 데이터 삽입 SQL 스크립트 문서 및 보안: - CLAUDE.md 추가: API 개발 체크리스트, snake_case 규칙, JWTFilter 등록 가이드 - 민감 정보 노출 방지 검증 스크립트 (check-secrets.sh) - .gitignore 개선: application.properties 제외 설정 유지 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.
📌 작업 개요
[feat]: 킥테일 즐겨찾기 토글 수정 #108
칵테일 즐겨찾기 기능을 배치 처리 방식으로 개선했습니다.
주요 변경사항
배치 즐겨찾기 토글 API 구현 (
POST /api/v2/cocktails/bookmarks/batch)cocktail_ids)JWTFilter 인증 경로 등록
/api/v2/cocktails/bookmarks/batch경로를 인증 필수로 설정/onz/api/v2/cocktails/bookmarks/batch(context-path 포함) 경로도 등록테스트 지원 기능
TestAuthController)📚 문서화 및 개발 가이드
CLAUDE.md 추가
@JsonProperty사용)보안 강화
scripts/check-secrets.sh).gitignore개선: application.properties 제외 설정 유지📁 수정/추가된 파일
핵심 코드 (7개)
JWTFilter.java- 배치 북마크 API 인증 경로 등록CocktailBookmarkController.java- 배치 토글 엔드포인트 + 디버그 로깅CocktailBookmarkService.java- 배치 토글 비즈니스 로직BookmarkBatchRequest.java- 배치 요청 DTO (snake_case)BookmarkBatchResponse.java- 배치 응답 DTO (snake_case)TestAuthController.java- 테스트용 JWT 토큰 생성 API.gitignore- application.properties 제외 설정문서 및 스크립트 (3개)
CLAUDE.md- API 개발 가이드 (227줄)scripts/check-secrets.sh- 민감 정보 검증 자동화 스크립트scripts/insert_test_data.sql- 테스트 데이터 SQL✨ 기타 참고 사항
API 사용 예시