Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • dawn/go-backend/dawn-gdd
1 result
Show changes
Commits on Source (3)
author: tgsiegel
change_type: Chore
commit: swagger updates
date: '2023-03-16'
merge_request: https://gitlab.cs.umd.edu/dawn/go-backend/dawn-gdd/-/merge_requests/25
version: 1.0.4
...@@ -12,19 +12,15 @@ import ( ...@@ -12,19 +12,15 @@ import (
var GetGddValues = services.GetGddValues var GetGddValues = services.GetGddValues
// GetDailyGdd godoc // GetDailyGdd godoc
<<<<<<< controllers/gdd_controller.go
// @Summary Get GDD Values for given year // @Summary Get GDD Values for given year
// @Tags Gdd, public // @Tags Gdd, public
// @Security ApiKeyAuth // @Security ApiKeyAuth
=======
// @Summary Get gdd values
// @Tags Gdd, public
// @Description get gdd values
>>>>>>> controllers/gdd_controller.go
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Success 200 {object} models.GddResponse // @Success 200 {object} models.GddResponse
// @Failure 400 {object} errors.StandardError // @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 year query int true "Year to get gdd for"
// @Param product query string true "Crop to calculate gdd for" Enums(corn) // @Param product query string true "Crop to calculate gdd for" Enums(corn)
// @Param latitude query number true "Latitude to search for" // @Param latitude query number true "Latitude to search for"
...@@ -46,6 +42,8 @@ func GetDailyGdd(c *fiber.Ctx) error { ...@@ -46,6 +42,8 @@ func GetDailyGdd(c *fiber.Ctx) error {
// @Produce json // @Produce json
// @Success 200 {object} models.GddResponse // @Success 200 {object} models.GddResponse
// @Failure 400 {object} errors.StandardError // @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 product query string true "Crop to calculate gdd for" Enums(corn)
// @Param latitude query number true "Latitude to search for" // @Param latitude query number true "Latitude to search for"
// @Param longitude query number true "Longitude to search for" // @Param longitude query number true "Longitude to search for"
......