[Test] ProductImage API Test#238
Merged
Merged
Conversation
- 상품 이미지 업로드, 조회, 삭제, 대표 이미지 변경 API 테스트 구현 - REST Docs 스니펫(path-parameters, request-parts, response-fields) 생성 - DiscountControllerTest 스타일에 맞춰 응답 데이터 없는 API는 요청만 문서화 - TestConfig, SecurityTestConfig 적용하여 MockMvc 기반 테스트 환경 구성
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
closes #201
📌 작업 내용 및 특이사항
ProductImage(상품 이미지) API 구현
POST /product-images)GET /product-images/products/{productId})PATCH /product-images/{imageId})DELETE /product-images/{imageId})단일 상품 다중 이미지 업로드 구현 (대표 이미지 중복 방지 로직 포함)
파일명 정규화 및 UUID 기반 저장 (FileStorageService 적용)
FileProperties 추가 및 PropertiesConfig에 반영
📚 참고사항