diff --git a/controllers/gdd_controller.go b/controllers/gdd_controller.go index fbf32674181caa4e97ed6f9394380aa320c98955..c99ab81181631c137e1bcc05792c8b8d52bae150 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"