시간대별 날씨 페이지

시간대별 기온, 시간대별 강수량, ootd 정보를 반환하는 api

1) URL

GET /weather/time

Request Parameter1

parameter

requirement

description

lat

N

위도

lon

N

경도

GET /weather/time?lat=37.5145963013281&lon=126.9754626313914

Request Parameter 2

parameter

requirement

description

code

N

행정 구역 코드

GET /weather/time?code=2824510700

* 검색 시 해당 파라미터를 이용하여 호출할 수 있습니다.

2) RESPONSE BODY

Success http status code

HTTP Status code: 200 OK

Description

  • tempInfo

    • tempInfo.resultCode: 응답 코드 (200 = SUCCESS, 500 = ERROR)

    • tempInfo.errorMessage: 에러 메세지 (성공 시 SUCCESS 반환)

    • tempInfo.document

      • tempInfo.document.time: 시간

      • tempInfo.document.temperature: 기온

      • tempInfo.document.icon: 날씨 icon URL

  • rainInfo

    • rainInfo.resultCode: 응답 코드 (200 = SUCCESS, 500 = ERROR)

    • rainInfo.errorMessage: 에러 메세지 (성공 시 SUCCESS 반환)

    • rainInfo.document

      • rainInfo.document.time: 시간

      • rainInfo.document.rain: 강수량

      • rainInfo.document.percent: 강수 확률

      • rainInfo.document.icon: 물방울 icon URL

Example

3) ERROR CODE

error code

error message

description

500

JSON_PARSING_ERROR

api의 잘못된 응답으로 인한 json 문서 파싱 에러

500

UNKNOWN_ERROR

이 외

Last updated

Was this helpful?