Anemos Public API エンドポイント設計書
基本情報
Anemos Internal APIからデータをキャッシュし、Public向けに再配信するAPI。 必要に応じてInternalからデータを取得し、キャッシュを行う。 また、Public向けには認証を必要としない。Kubernetesにデプロイすることを前提とする設計。
エンドポイント
GET /v1/weather-info
直近1週間の天気、気象警報、地震情報を取得する。
Parameter
number : 取得する件数
post_code : 郵便番号
start: 取得開始日時
end: 取得終了日時
filter: 取得するデータの種類
list[weather-forecast, weather-warning, earthquake]
GET /v1/weather-info/past
直近1週間の気象警報、地震情報を取得する。 場合によっては取得できない。
Parameter
number : 取得する件数
post_code : 郵便番号
start Require: 取得開始日時
end Require: 取得終了日時
filter: 取得するデータの種類
list[weather-warning, earthquake]