diff --git a/controllers/forecast_controller.go b/controllers/forecast_controller.go index 7fade6a4a7a1269f581ca3f63b51345e2a437e1f..4c900fbaa272f2934085430556e3663f1ff09cbf 100644 --- a/controllers/forecast_controller.go +++ b/controllers/forecast_controller.go @@ -10,20 +10,20 @@ import ( // ForecastStages godoc // @Summary Get stages -// @Tags Forecast +// @Tags Forecast, public +// @Security ApiKeyAuth // @Description Get stages // @Accept json // @Produce json // @Success 200 {object} map[string]models.Bins // @Failure 400 {object} errors.StandardError +// @Failure 500 {object} errors.StandardError // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" -// @Param plant_date query string true "Plant date, ISO8601 or RFC3339 format" -// @Param mode query string true "Mode, rm or gdds_to_maturity" +// @Param plant_date query string true "Plant date RFC3339 format" +// @Param mode query string true "Mode, rm (relative maturity) or gdds_to_maturity" // @Param value query int true "Value of mode" -// @Param anchor_stage query string false "anchoring stage" -// @Param anchor_date query string false "anchoring date" -// @Param comparison query int false "comparison. -1 for normals, or any int between 1981 and 2021 for a single year" +// @Param comparison query int false "comparison. -1 for normals, or any int between 1981 and 2021 for a single year" default(-1) // @Router /gdd/forecast/stages [get] func ForecastStages(c *fiber.Ctx) error { ctx := common.DawnCtx{FiberCtx: c}