From 8707c082dea4abe0ae03b08caa32b7442673c169 Mon Sep 17 00:00:00 2001
From: Tucker Siegel <tgsiegel@terpmail.umd.edu>
Date: Thu, 16 Mar 2023 15:43:57 -0400
Subject: [PATCH] make forecast public

---
 controllers/forecast_controller.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/controllers/forecast_controller.go b/controllers/forecast_controller.go
index 7fade6a..4c900fb 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}
-- 
GitLab