[Bug] Public API에서 불필요한 X-Service-Code 의존성 제거 #90

Closed
opened 2026-02-10 05:22:50 +00:00 by seonkyu.kim · 0 comments
Owner

설명

Public API는 SPMS 플랫폼 공용 API로 특정 서비스와 무관하다. 그러나 현재 모든 Public API Controller에서 X-Service-Code 헤더를 필수로 체크하고 있어, 헤더가 없으면 400 에러가 발생한다.

재현

  • POST /v1/in/public/notice/list 호출 시 X-Service-Code 헤더 없으면 400 BadRequest

수정 범위

Controllers (X-Service-Code 체크 제거)

  • NoticeController.cs
  • BannerController.cs
  • FaqController.cs
  • TermsController.cs (terms, privacy)
  • AppVersionController.cs
  • AppConfigController.cs

Services (serviceCode 파라미터 및 서비스 조회 제거)

  • NoticeService.cs
  • BannerService.cs
  • FaqService.cs
  • AppConfigService.cs

Interfaces (시그니처 변경)

  • INoticeService.cs
  • IBannerService.cs
  • IFaqService.cs
  • IAppConfigService.cs

Repositories (serviceId 파라미터 제거)

  • INoticeRepository.cs + NoticeRepository.cs
  • IBannerRepository.cs + BannerRepository.cs
  • IFaqRepository.cs + FaqRepository.cs
  • IAppConfigRepository.cs + AppConfigRepository.cs

검증

  • 빌드 성공 확인
## 설명 Public API는 SPMS 플랫폼 공용 API로 특정 서비스와 무관하다. 그러나 현재 모든 Public API Controller에서 `X-Service-Code` 헤더를 필수로 체크하고 있어, 헤더가 없으면 400 에러가 발생한다. ## 재현 - `POST /v1/in/public/notice/list` 호출 시 X-Service-Code 헤더 없으면 400 BadRequest ## 수정 범위 ### Controllers (X-Service-Code 체크 제거) - [x] `NoticeController.cs` - [x] `BannerController.cs` - [x] `FaqController.cs` - [x] `TermsController.cs` (terms, privacy) - [x] `AppVersionController.cs` - [x] `AppConfigController.cs` ### Services (serviceCode 파라미터 및 서비스 조회 제거) - [x] `NoticeService.cs` - [x] `BannerService.cs` - [x] `FaqService.cs` - [x] `AppConfigService.cs` ### Interfaces (시그니처 변경) - [x] `INoticeService.cs` - [x] `IBannerService.cs` - [x] `IFaqService.cs` - [x] `IAppConfigService.cs` ### Repositories (serviceId 파라미터 제거) - [x] `INoticeRepository.cs` + `NoticeRepository.cs` - [x] `IBannerRepository.cs` + `BannerRepository.cs` - [x] `IFaqRepository.cs` + `FaqRepository.cs` - [x] `IAppConfigRepository.cs` + `AppConfigRepository.cs` ### 검증 - [x] 빌드 성공 확인
seonkyu.kim added the
Priority
High
Status
Available
Type
Bug
labels 2026-02-10 05:23:01 +00:00
seonkyu.kim self-assigned this 2026-02-10 05:23:05 +00:00
seonkyu.kim added this to the Phase 2-2: Public & 디바이스 & 파일 API milestone 2026-02-10 05:23:06 +00:00
seonkyu.kim added
Status
In Progress
and removed
Status
Available
labels 2026-02-10 05:28:52 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-10 05:30:30 +00:00
Sign in to join this conversation.
No description provided.