Skip to content
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

설질 정보 조회 API #3

Open
jun108059 opened this issue Sep 22, 2024 · 0 comments
Open

설질 정보 조회 API #3

jun108059 opened this issue Sep 22, 2024 · 0 comments
Assignees
Labels
api External API feature
Milestone

Comments

@jun108059
Copy link
Member

설질 정보 조회 API

현재 스키장의 설질에 대한 투표 결과를 제공합니다.

Endpoint

  • GET /api/snow-making/{resortId}

요청 파라미터

  • resortId (Path Parameter): 스키장 ID

응답

{
  "totalVotes": 100,
  "positiveVotes": 80,
  "status": "상태가 좋아요" // "상태가 좋아요", "나쁘지 않아요", "좋지 않아요"
}

상태 결정 로직

  • 긍정 투표 비율이 80% 이상: 좋음
  • 긍정 투표 비율이 50% 이상 80% 미만: 나쁘지 않음
  • 긍정 투표 비율이 50% 미만: 좋지 않음
@jun108059 jun108059 added the api External API feature label Sep 22, 2024
@jun108059 jun108059 added this to the Phase1-mvp milestone Sep 22, 2024
@jun108059 jun108059 self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api External API feature
Projects
None yet
Development

No branches or pull requests

1 participant