Skip to content
Snippets Groups Projects
Commit ea2a26ec authored by tgs266's avatar tgs266
Browse files

change errors to config

parent e36a69cf
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment