-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#48 - Kakao Search API Manager 구현 및 테스트 코드 작성 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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
what? 키워드로 장소를 반환하는 API의 요청, 응답 DTO를 추가했습니다.
what? - 좌표를 요청하여 주소를 응답받는 API의 요청, 구조 DTO를 추가하였습니다. - nonisolted ㅠㅠ
what? - config에 키를 추가했습니다. config.xcconfig는 별도로 보내드림! - base가 되는 공통 헤더, api헤더, 공통 url 주소를 추가하였습니다. - 에러는 별도로 폴더로 빼서 추가하였습니다.
what? - Generic 공통 요청 메서드로 API 호출 처리 - 프로토콜 기반 응답 검증 (KakaoResponseMeta) - 좌표 → 주소 변환 API (fetchLocationFromCoord) - 키워드 → 장소 검색 API (fetchPlaceFromKeyword) - NetworkHeader로 헤더 관리 중앙화 - 공통 디코더 프로퍼티 (snake_case 변환)
what? - api 호출 결괏값을 출력하는 테스트 코드를 작성 - 좌표to주소, 키워드to장소 2개 테스트 코드 작성
delightPIP
reviewed
Nov 5, 2025
SUSA24-iOS/SUSA24-iOS/Sources/Util/Network/Search/DTO/KakaoCoordToLocationResponseDTO.swift
Outdated
Show resolved
Hide resolved
mini-min
approved these changes
Nov 6, 2025
What? - 요청 방식에서 파라미터를 제거하고 URL+헤더로 요청함에 따라 Request DTO 제거 - Response 모델은 nonisolated를 제거하였습니다.
What? - URL을 조합하기 위한 URL빌더를 만들었습니다. - URLComponents를 사용해서 구현했습니다. Why? - 기존 방식의 Parameter가 Sendable 프로토콜 관련 오류가 발생하여 파라미터를 제거하고 URL을 조합하여 쓰는 방식으로 변경했습니다.
…odifications What? - url 빌더로 메서드 파라미터를 받아 url을 조합해서 request 하는 방식으로 변경했습니다.
YooGyeongMo
approved these changes
Nov 6, 2025
Collaborator
YooGyeongMo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2. RequestDTO로 분리시켜서 하면 더 좋을듯합니다.
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.
📝 Summary
검색 API에 사용되는 데이터 모델을 정의하고 서비스를 제공하는 매니저 클래스를 구현했습니다.
🔨 What
API 서비스 매니저 구현!!!!
변경 후
👀 Review Notes
카카오톡 참고!