SEAN
e9bcd5358f
feat: 디바이스 CRUD + 목록 API 구현 ( #94 )
2026-02-10 14:44:16 +09:00
SEAN
f798b290ec
fix: X-Service-Code 미들웨어 경로 제외 수정 ( #59 )
...
auth, account, public, service 경로를 X-Service-Code 검증 대상에서 제외.
device, message, push, stats, file 경로만 X-Service-Code 헤더 필요.
Swagger OperationFilter도 동일하게 수정.
2026-02-10 10:20:43 +09:00
SEAN
9185afd5e9
feat: Sandbox 모드 미들웨어 구현 ( #34 )
...
- SandboxMiddleware 추가: X-SPMS-TEST 헤더로 테스트 모드 감지
- HttpContext.Items["IsSandbox"] 플래그 설정
- 미들웨어 파이프라인 14번 위치에 등록
Closes #34
2026-02-09 17:32:04 +09:00
SEAN
df8a8e2e5b
feat: X-Service-Code / X-API-KEY 서비스 식별 미들웨어 구현 ( #32 )
...
- ServiceRepository: IServiceRepository 구현 (GetByServiceCode, GetByApiKey)
- ServiceCodeMiddleware: X-Service-Code 헤더 검증, DB 조회, 서비스 상태 확인
- ApiKeyMiddleware: /v1/in/device/* 경로 X-API-KEY 검증
- ApplicationBuilderExtensions: 미들웨어 파이프라인 12~13번 등록
- DependencyInjection: IServiceRepository DI 등록
Closes #32
2026-02-09 17:25:19 +09:00
SEAN
d6b15c3cd8
feat: Serilog 구조적 로깅 설정 ( #22 )
...
- appsettings.json/Development.json에 Serilog 섹션 추가 (Console/File Sink, Rolling Daily)
- RequestIdMiddleware 구현 (X-Request-ID 헤더 발급/반환)
- Program.cs에 Serilog 호스트 빌더 + UseSerilogRequestLogging 등록
- 환경별 로그 레벨 분리 (Development: Debug, Production: Warning)
2026-02-09 15:10:17 +09:00
SEAN
a9f6a436c4
feat: SpmsException 및 글로벌 예외 처리 미들웨어 구현 ( #16 )
2026-02-09 14:33:37 +09:00