Skip to content
Snippets Groups Projects
Commit 8707c082 authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

make forecast public

parent 6e8b0482
No related branches found
No related tags found
No related merge requests found
...@@ -10,20 +10,20 @@ import ( ...@@ -10,20 +10,20 @@ import (
// ForecastStages godoc // ForecastStages godoc
// @Summary Get stages // @Summary Get stages
// @Tags Forecast // @Tags Forecast, public
// @Security ApiKeyAuth
// @Description Get stages // @Description Get stages
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Success 200 {object} map[string]models.Bins // @Success 200 {object} map[string]models.Bins
// @Failure 400 {object} errors.StandardError // @Failure 400 {object} errors.StandardError
// @Failure 500 {object} errors.StandardError
// @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"
// @Param plant_date query string true "Plant date, ISO8601 or RFC3339 format" // @Param plant_date query string true "Plant date RFC3339 format"
// @Param mode query string true "Mode, rm or gdds_to_maturity" // @Param mode query string true "Mode, rm (relative maturity) or gdds_to_maturity"
// @Param value query int true "Value of mode" // @Param value query int true "Value of mode"
// @Param anchor_stage query string false "anchoring stage" // @Param comparison query int false "comparison. -1 for normals, or any int between 1981 and 2021 for a single year" default(-1)
// @Param anchor_date query string false "anchoring date"
// @Param comparison query int false "comparison. -1 for normals, or any int between 1981 and 2021 for a single year"
// @Router /gdd/forecast/stages [get] // @Router /gdd/forecast/stages [get]
func ForecastStages(c *fiber.Ctx) error { func ForecastStages(c *fiber.Ctx) error {
ctx := common.DawnCtx{FiberCtx: c} ctx := common.DawnCtx{FiberCtx: c}
......
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