fix(api): 콘텐츠 설정 PATCH 제외 API 파라미터를 제거한다
This commit is contained in:
36
docs/20260327_콘텐츠보기설정파라미터전송정리.md
Normal file
36
docs/20260327_콘텐츠보기설정파라미터전송정리.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 20260327_콘텐츠보기설정파라미터전송정리
|
||||
|
||||
## 작업 목적
|
||||
- `PATCH /member/content-preference`를 제외한 모든 API 요청에서 `isAdultContentVisible`, `contentType` 전송을 제거한다.
|
||||
|
||||
## 구현 체크리스트
|
||||
- [x] 코드베이스에서 `isAdultContentVisible`, `contentType` 전송 위치를 전수 확인한다.
|
||||
- [x] 예외 API(`PATCH /member/content-preference`) 선언 및 호출 경로를 확인한다.
|
||||
- [x] 예외 API 외 DTO/호출부에서 두 파라미터를 제거한다.
|
||||
- [x] 수정 파일 진단, 테스트, 빌드 검증을 수행한다.
|
||||
- [x] 검증 기록을 문서 하단에 누적한다.
|
||||
|
||||
## 수용 기준 (Pass/Fail)
|
||||
- [x] PASS: `PATCH /member/content-preference`에서는 `isAdultContentVisible`, `contentType`가 유지된다.
|
||||
- [x] PASS: 그 외 API 요청에서는 `isAdultContentVisible`, `contentType`가 전송되지 않는다.
|
||||
- [x] PASS: `./gradlew :app:testDebugUnitTest`가 성공한다.
|
||||
- [x] PASS: `./gradlew :app:assembleDebug`가 성공한다.
|
||||
|
||||
## 검증 기록
|
||||
- 2026-03-27
|
||||
- 무엇/왜/어떻게: `/member/content-preference` PATCH를 제외한 API 요청에서 `isAdultContentVisible`, `contentType` 전송을 제거했다. Retrofit API 시그니처와 각 Repository 호출 인자를 함께 정리해 누락 없이 제거했다.
|
||||
- 실행 명령/도구:
|
||||
- `task(explore: 전송 경로 탐색 2건)`
|
||||
- `grep("@Query(\"isAdultContentVisible\")|@Query(\"contentType\")", include="*Api.kt")`
|
||||
- `apply_patch(Live/Home/Search/Explorer/AudioContent/Series API·Repository 수정)`
|
||||
- `lsp_diagnostics(수정된 .kt 파일 14개)`
|
||||
- `grep("@PATCH(\"/member/content-preference\")", include="UserApi.kt")`
|
||||
- `grep("@Query(\"isAdultContentVisible\")|@Query(\"contentType\")", include="*Api.kt")`
|
||||
- `grep("isAdultContentVisible|contentType", include="*Request*.kt")`
|
||||
- `./gradlew :app:testDebugUnitTest :app:assembleDebug`
|
||||
- 결과:
|
||||
- `UserApi.kt`의 `@PATCH("/member/content-preference")`는 유지됨을 확인했다.
|
||||
- 전체 `*Api.kt`에서 `@Query("isAdultContentVisible")`, `@Query("contentType")`가 0건임을 확인했다.
|
||||
- `*Request*.kt`에서 두 필드는 `UpdateContentPreferenceRequest.kt` 1건만 남아 예외 API 요청으로 제한됨을 확인했다.
|
||||
- `lsp_diagnostics`는 Kotlin LSP 미구성으로 진단 불가 메시지를 확인했다.
|
||||
- `./gradlew :app:testDebugUnitTest :app:assembleDebug` 성공(`BUILD SUCCESSFUL`).
|
||||
Reference in New Issue
Block a user