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 #2

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

날씨 정보 조회 API #2

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

Comments

@jun108059
Copy link
Member

날씨 정보 API

특정 스키장의 상세 날씨 정보를 제공합니다.(weather tab)

Endpoint

  • GET /api/weather/{resortId}

요청 파라미터

  • resortId (Path Parameter): 스키장 ID

응답

{
  "currentWeather": {
    "temperature": -5,
    "maxTemperature": -2,
    "minTemperature": -8,
    "feelsLike": -10,
    "description": "눈이 내리고 있습니다."
  },
  "hourlyWeather": [
    {
      "time": "오전 8시",
      "temperature": -5,
      "precipitationChance": 80, // 강수 확률 (%)
      "description": ""
    },
    // ... 8시부터 새벽 2시까지 2시간 간격
  ],
  "weeklyWeather": [
    {
      "day": "",
      "date": "8.1",
      "precipitationChance": "20%",
      "maxTemp": -2,
      "minTemp": -10,
      "description": "맑음",
    },
    // ... 최대 10일간의 데이터
  ]
}

설명

  • 시간대별 날씨 시간 범위(오전8시 ~ 새벽2시까지 2시간 간격)
@jun108059 jun108059 added the api External API feature label Sep 22, 2024
@jun108059 jun108059 self-assigned this Sep 22, 2024
@jun108059 jun108059 added this to the Phase1-mvp milestone Sep 22, 2024
jun108059 added a commit that referenced this issue Oct 3, 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