diff --git a/controllers/data_download_controller.go b/controllers/data_download_controller.go index b08a87aa6be3c58fdc53224a3a3c7d169b751b0e..957f2937aca974c40921e6bf31cf6baecc639ea5 100644 --- a/controllers/data_download_controller.go +++ b/controllers/data_download_controller.go @@ -14,7 +14,7 @@ import ( // @Description Get gdd data csv // @Accept json // @Produce text/csv -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param analog query boolean false "Add analog data to csv" // @Param cfs query boolean false "Add cfs data to csv" // @Param cfs_upper query boolean false "Add cfs upper bound data to csv" diff --git a/controllers/freezing_dates_controller.go b/controllers/freezing_dates_controller.go index 25f02cd9f07cbe4696868a6af9a1ccd2af2b58a1..e2c37ce150ba4777e3dc0baf10f05f4bb04db7cb 100644 --- a/controllers/freezing_dates_controller.go +++ b/controllers/freezing_dates_controller.go @@ -14,7 +14,7 @@ import ( // @Accept json // @Produce json // @Success 200 {object} models.FreezingDateResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" // @Param freezing_temp query number true "Freezing temperature to use" diff --git a/controllers/gdd_controller.go b/controllers/gdd_controller.go index ae8487b0c1cb51404c386cbe8973d4cf9de626b3..86448a2543d7d4e4cd95304c1a55ec85db9f8a7a 100644 --- a/controllers/gdd_controller.go +++ b/controllers/gdd_controller.go @@ -17,7 +17,7 @@ var GetGddValues = services.GetGddValues // @Accept json // @Produce json // @Success 200 {object} models.GddResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param year query int true "Year to get gdd for" // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // @Param latitude query number true "Latitude to search for" @@ -37,7 +37,7 @@ func GetDailyGdd(c *fiber.Ctx) error { // @Accept json // @Produce json // @Success 200 {object} models.GddResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" diff --git a/controllers/misc_controller.go b/controllers/misc_controller.go index cc974e81c49f72cc6530ce14bc704031b088e065..ab8af71f0cb50d569e9023ba3b3e4b7d50b40b05 100644 --- a/controllers/misc_controller.go +++ b/controllers/misc_controller.go @@ -18,7 +18,7 @@ import ( // @Accept json // @Produce json // @Success 200 {object} models.AnalogResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" // @Router /api/weather/gdd/analog [get] @@ -44,7 +44,7 @@ func GetAnalogYear(c *fiber.Ctx) error { // @Accept json // @Produce json // @Success 200 {object} models.ConfidenceIntervalResposne -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" diff --git a/controllers/nomads_controller.go b/controllers/nomads_controller.go index 3a4b1a1a4885f4a41530a59269e49c30cf542707..fb0cac71a9b5362bc4b1dad9601aa3ce259c13f0 100644 --- a/controllers/nomads_controller.go +++ b/controllers/nomads_controller.go @@ -14,7 +14,7 @@ import ( // @Accept json // @Produce json // @Success 200 {object} models.GefsGddResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" @@ -32,7 +32,7 @@ func GetGefsGDD(c *fiber.Ctx) error { // @Accept json // @Produce json // @Success 200 {object} models.CfsGddResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" @@ -50,7 +50,7 @@ func GetCfsGDD(c *fiber.Ctx) error { // // @Accept json // // @Produce json // // @Success 200 {object} models.CfsGddResponse -// // @Failure 400 {object} errors.StandardError +// // @Failure 400 {object} config.StandardError // // @Param product query string true "Crop to calculate gdd for" Enums(corn, soybean, sunflower, tomato, sugar_beet, peanut, cotton, potato, wheat, pea, oat, spring_wheat, rice, sorghum) // // @Param latitude query number true "Latitude to search for" // // @Param longitude query number true "Longitude to search for" diff --git a/controllers/seed_controllers.go b/controllers/seed_controllers.go index 13f926e125e5fbb4a1174a7127f5b4612c89469e..24ca5b72cb254fac0c33b875d0a701d8488d3ab9 100644 --- a/controllers/seed_controllers.go +++ b/controllers/seed_controllers.go @@ -15,7 +15,7 @@ import ( // @Accept json // @Produce json // @Success 200 {object} models.SeedListResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param product query string true "Crop type to use" Enums(corn, soybean) // @Router /api/weather/gdd/seeds [get] func GetSeedList(c *fiber.Ctx) error { @@ -32,7 +32,7 @@ func GetSeedList(c *fiber.Ctx) error { // @Accept json // @Produce json // @Success 200 {object} models.CornMaturityResponse -// @Failure 400 {object} errors.StandardError +// @Failure 400 {object} config.StandardError // @Param latitude query number true "Latitude to search for" // @Param longitude query number true "Longitude to search for" // @Param seed query string true "Corn seed to use"