Skip to content
Snippets Groups Projects

Swagger

Closed Tucker Gary Siegel requested to merge swagger into develop
1 file
+ 4
7
Compare changes
  • Side-by-side
  • Inline
@@ -12,20 +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
// @Param year query int true "Year to get gdd for"
// @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"
@@ -46,6 +41,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"
Loading