[Feat] 저장된 URL 중복 체크 API 추가 - #43
Merged
Merged
Conversation
- SavedLinkServiceTest: checkUrl 존재/미존재 케이스 검증 - SavedLinkControllerTest: GET /saved-links/check 응답 검증 IssueNum #42
- GET /api/v1/saved-links/check?url={url}
- Analysis.originalUrl 기준 exact match로 멤버별 중복 여부 확인
IssueNum #42
- MissingServletRequestParameterException → 400 처리 (GlobalExceptionHandler) - 빈 문자열 url 파라미터 → 400 처리 (컨트롤러 직접 검증) IssueNum #42
- 400, 401 응답 코드 추가 IssueNum #42
minsoo0506
approved these changes
May 27, 2026
minsoo0506
left a comment
There was a problem hiding this comment.
GET /api/v1/saved-links/check?url=...에서 빈 문자열/누락 파라미터를 400으로 처리하고, 현재 멤버의 저장 링크 중 Analysis.originalUrl exact match 여부를 확인하는 구현도 PR 의도와 일치합니다.
수정할 것이 없어 보입니다. 고생하셨습니다 :)
15 tasks
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.
요약
FastAPI 분석 요청 전, 사용자가 입력한 URL이 이미 저장된 링크에 존재하는지 확인하는 API를 추가합니다.
GET /api/v1/saved-links/check?url={url}Analysis.original_url기준 exact match로 현재 멤버의 저장 링크 중복 여부 반환테스트
중복 URL 체크 테스트
연관 이슈 및 Close 할 이슈 작성
close #42
Pull Request 체크리스트
TODO