createForecast 제거

- broker를 통해 전달하는걸로 설계 변경
This commit is contained in:
2025-12-04 15:37:13 +09:00
parent 38242e86de
commit cb958834cb

View File

@@ -48,22 +48,6 @@ model HourlyForecastList {
items: HourlyForecast[]; items: HourlyForecast[];
} }
model CreateForecastRequest {
time: offsetDateTime;
@doc("하루 동안의 예상 최고 기온(℃)")
high?: Celsius;
@doc("하루 동안의 예상 최저 기온(℃)")
low?: Celsius;
@doc("예상 기온(℃)")
temperature?: Celsius;
@doc("예상 날씨 상태")
condition: WeatherCondition;
}
@error @error
model Error { model Error {
@doc("에러 코드") @doc("에러 코드")
@@ -76,15 +60,6 @@ model Error {
@route("/forecasts") @route("/forecasts")
@tag("Forecasts") @tag("Forecasts")
interface 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 @get
@route("/daily") @route("/daily")
listDaily(): { listDaily(): {