From e452ecae6ff17ff4072121856a186fc5a12fd503 Mon Sep 17 00:00:00 2001 From: Tucker Gary Siegel <tgsiegel@terpmail.umd.edu> Date: Thu, 16 Mar 2023 15:35:36 -0400 Subject: [PATCH] swagger updates --- controllers/gdd_controller.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/controllers/gdd_controller.go b/controllers/gdd_controller.go index fbf3267..c99ab81 100644 --- a/controllers/gdd_controller.go +++ b/controllers/gdd_controller.go @@ -12,19 +12,15 @@ import ( var GetGddValues = services.GetGddValues // GetDailyGdd godoc -<<<<<<< controllers/gdd_controller.go // @Summary Get GDD Values for given year // @Tags Gdd, public // @Security ApiKeyAuth -======= -// @Summary Get gdd values -// @Tags Gdd, public -// @Description get gdd values ->>>>>>> controllers/gdd_controller.go // @Accept json // @Produce json // @Success 200 {object} models.GddResponse // @Failure 400 {object} errors.StandardError +// @Failure 404 {object} errors.StandardError +// @Failure 500 {object} errors.StandardError // @Param year query int true "Year to get gdd for" // @Param product query string true "Crop to calculate gdd for" Enums(corn) // @Param latitude query number true "Latitude to search for" @@ -46,6 +42,8 @@ func GetDailyGdd(c *fiber.Ctx) error { // @Produce json // @Success 200 {object} models.GddResponse // @Failure 400 {object} errors.StandardError +// @Failure 404 {object} errors.StandardError +// @Failure 500 {object} errors.StandardError // @Param product query string true "Crop to calculate gdd for" Enums(corn) // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" -- GitLab