feat: 공개 통계로 소개 사이트 수치를 자동 갱신할 수 있게 - #114
Merged
Merged
Conversation
- GET /health/hospitals/statistics (공개): 전체 병원 수 + 진료과목별 수. 목록 API 는 페이지 상한이 있어 세면 실제보다 적게 나왔다. - 시설 통계가 유형별 집계를 조회해 놓고 버린 뒤 typeDistribution/typeStats 에 null, activeFacilities·예약 수에 0 을 넣던 것을 실제 값으로 채운다.
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.
Closes #79
변경
GET /health/hospitals/statistics공개 —{ totalHospitals, byType: { 진료과목: 수 } }, 진료과목이 빈 병원은 "기타"GET /facilities/statistics—typeDistribution·typeStats·activeFacilities·예약 수를 실제 값으로 (예전엔 null/0 고정)테스트
PublicStatsContractTest— 두 통계가 비로그인 200 이고 값이 채워지는지AccessControlContractTest(50),EndpointAuthorizationCoverageTest통과