From cb958834cbdb3c4119a64dd2168625d4f9e4254e Mon Sep 17 00:00:00 2001 From: biosvos Date: Thu, 4 Dec 2025 15:37:13 +0900 Subject: [PATCH] =?UTF-8?q?createForecast=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - broker를 통해 전달하는걸로 설계 변경 --- api/main.tsp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/api/main.tsp b/api/main.tsp index 9bda230..4519a27 100644 --- a/api/main.tsp +++ b/api/main.tsp @@ -48,22 +48,6 @@ model HourlyForecastList { items: HourlyForecast[]; } -model CreateForecastRequest { - time: offsetDateTime; - - @doc("하루 동안의 예상 최고 기온(℃)") - high?: Celsius; - - @doc("하루 동안의 예상 최저 기온(℃)") - low?: Celsius; - - @doc("예상 기온(℃)") - temperature?: Celsius; - - @doc("예상 날씨 상태") - condition: WeatherCondition; -} - @error model Error { @doc("에러 코드") @@ -76,15 +60,6 @@ model Error { @route("/forecasts") @tag("Forecasts") interface Forecasts { - @post - @doc("internal API to create a forecast") - createForecast(@body body: CreateForecastRequest): { - @statusCode statusCode: 204; - } | { - @statusCode statusCode: 500; - @body body: Error; - }; - @get @route("/daily") listDaily(): {