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

[#1] 스키장 정보 조회 API 개발 #6

Merged
merged 7 commits into from
Sep 27, 2024

Conversation

jun108059
Copy link
Member

@jun108059 jun108059 commented Sep 22, 2024

✨ Summary

  • 스키장 정보 조회 API 개발

✍🏻 Describe changes

전체 스키장의 기본 정보와 현재 날씨, 주간 날씨 정보를 제공합니다.

Endpoint

  • GET /api/ski-resorts

요청 파라미터

  • N/A

응답

image
{
[
  {
    "resortId": 1,
    "name": "지산 리조트",
    "status": "운영중",
    "openSlopes": 3,
    "currentWeather": {
      "temperature": 3,
      "description": "맑음"
    },
    "weeklyWeather": [
      {
        "day": "월요일",
        "maxTemperature": 5,
        "minTemperature": -2,
        "description": "맑음"
      },
      {
        "day": "화요일",
        "maxTemperature": 6,
        "minTemperature": -1,
        "description": "흐림"
      },
      {
        "day": "수요일",
        "maxTemperature": 4,
        "minTemperature": -3,
        "description": "흐리고 비"
      }
    ]
  },
  {
    "resortId": 2,
    "name": "곤지암 스키장",
    "status": "운영중",
    "openSlopes": 2,
    "currentWeather": {
      "temperature": 2,
      "description": "흐림"
    },
    "weeklyWeather": [
      {
        "day": "월요일",
        "maxTemperature": 4,
        "minTemperature": -3,
        "description": "흐림"
      },
      {
        "day": "화요일",
        "maxTemperature": 5,
        "minTemperature": -2,
        "description": "흐리고 비"
      },
      {
        "day": "수요일",
        "maxTemperature": 3,
        "minTemperature": -4,
        "description": ""
      }
    ]
  },
  {
    "resortId": 3,
    "name": "비발디파크",
    "status": "운영중",
    "openSlopes": 5,
    "currentWeather": {
      "temperature": 1,
      "description": ""
    },
    "weeklyWeather": [
      {
        "day": "월요일",
        "maxTemperature": 3,
        "minTemperature": -4,
        "description": ""
      },
      {
        "day": "화요일",
        "maxTemperature": 2,
        "minTemperature": -5,
        "description": ""
      },
      {
        "day": "수요일",
        "maxTemperature": 1,
        "minTemperature": -6,
        "description": "흐림"
      }
    ]
  },
    // ... 다른 스키장들
  ]
}

📌 Issue number

@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
@jun108059 jun108059 merged commit 0560c12 into main Sep 27, 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

Successfully merging this pull request may close these issues.

1 participant