"description":"All operations for GDD/Freezing Date data",
"title":"Dawn GDD Service",
"title":"Dawn GDD Service",
"contact":{
"contact":{
"name":"API Support",
"name":"API Support",
...
@@ -55,7 +54,7 @@
...
@@ -55,7 +54,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -100,7 +99,7 @@
...
@@ -100,7 +99,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -175,7 +174,7 @@
...
@@ -175,7 +174,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -247,6 +246,19 @@
...
@@ -247,6 +246,19 @@
"name":"longitude",
"name":"longitude",
"in":"query",
"in":"query",
"required":true
"required":true
},
{
"type":"string",
"description":"Plant date, ISO8601 or RFC3339 format",
"name":"plantingDate",
"in":"query",
"required":true
},
{
"type":"number",
"description":"number of times to repeat the request. When included with planting date, will extrapolate plantingdate -\u003e end of repeatYears range",
"name":"repeatYears",
"in":"query"
}
}
],
],
"responses":{
"responses":{
...
@@ -259,7 +271,7 @@
...
@@ -259,7 +271,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -417,7 +429,7 @@
...
@@ -417,7 +429,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -425,7 +437,11 @@
...
@@ -425,7 +437,11 @@
},
},
"/gdd/daily":{
"/gdd/daily":{
"get":{
"get":{
"description":"get gdd values",
"security":[
{
"ApiKeyAuth":[]
}
],
"consumes":[
"consumes":[
"application/json"
"application/json"
],
],
...
@@ -433,9 +449,10 @@
...
@@ -433,9 +449,10 @@
"application/json"
"application/json"
],
],
"tags":[
"tags":[
"Gdd"
"Gdd",
"public"
],
],
"summary":"Get gdd values",
"summary":"Get GDD Values for given year",
"parameters":[
"parameters":[
{
{
"type":"integer",
"type":"integer",
...
@@ -446,20 +463,7 @@
...
@@ -446,20 +463,7 @@
},
},
{
{
"enum":[
"enum":[
"corn",
"corn"
"soybean",
"sunflower",
"tomato",
"sugar_beet",
"peanut",
"cotton",
"potato",
"wheat",
"pea",
"oat",
"spring_wheat",
"rice",
"sorghum"
],
],
"type":"string",
"type":"string",
"description":"Crop to calculate gdd for",
"description":"Crop to calculate gdd for",
...
@@ -487,6 +491,13 @@
...
@@ -487,6 +491,13 @@
"name":"accumulate",
"name":"accumulate",
"in":"query",
"in":"query",
"required":true
"required":true
},
{
"type":"string",
"description":"Plant date RFC3339 format",
"name":"plantingDate",
"in":"query",
"required":true
}
}
],
],
"responses":{
"responses":{
...
@@ -499,7 +510,152 @@
...
@@ -499,7 +510,152 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
},
"/gdd/forecast/freezing":{
"get":{
"description":"Get stages",
"consumes":[
"application/json"
],
"produces":[
"application/json"
],
"tags":[
"Forecast"
],
"summary":"Get stages",
"parameters":[
{
"type":"number",
"description":"Latitude to search for",
"name":"latitude",
"in":"query",
"required":true
},
{
"type":"number",
"description":"Longitude to search for",
"name":"longitude",
"in":"query",
"required":true
},
{
"type":"number",
"description":"Freezing temperature to use",
"name":"freezing_temp",
"in":"query",
"required":true
}
],
"responses":{
"200":{
"description":"OK",
"schema":{
"type":"object",
"additionalProperties":{
"type":"array",
"items":{
"type":"string"
}
}
}
},
"400":{
"description":"Bad Request",
"schema":{
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
},
"/gdd/forecast/stages":{
"get":{
"description":"Get stages",
"consumes":[
"application/json"
],
"produces":[
"application/json"
],
"tags":[
"Forecast"
],
"summary":"Get stages",
"parameters":[
{
"type":"number",
"description":"Latitude to search for",
"name":"latitude",
"in":"query",
"required":true
},
{
"type":"number",
"description":"Longitude to search for",
"name":"longitude",
"in":"query",
"required":true
},
{
"type":"string",
"description":"Plant date, ISO8601 or RFC3339 format",
"name":"plant_date",
"in":"query",
"required":true
},
{
"type":"string",
"description":"Mode, rm or gdds_to_maturity",
"name":"mode",
"in":"query",
"required":true
},
{
"type":"integer",
"description":"Value of mode",
"name":"value",
"in":"query",
"required":true
},
{
"type":"string",
"description":"anchoring stage",
"name":"anchor_stage",
"in":"query"
},
{
"type":"string",
"description":"anchoring date",
"name":"anchor_date",
"in":"query"
},
{
"type":"integer",
"description":"comparison. -1 for normals, or any int between 1981 and 2021 for a single year",
"name":"comparison",
"in":"query"
}
],
"responses":{
"200":{
"description":"OK",
"schema":{
"type":"object",
"additionalProperties":{
"$ref":"#/definitions/models.Bins"
}
}
},
"400":{
"description":"Bad Request",
"schema":{
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -574,7 +730,7 @@
...
@@ -574,7 +730,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -696,7 +852,7 @@
...
@@ -696,7 +852,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -733,7 +889,7 @@
...
@@ -733,7 +889,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -799,7 +955,7 @@
...
@@ -799,7 +955,7 @@
"400":{
"400":{
"description":"Bad Request",
"description":"Bad Request",
"schema":{
"schema":{
"$ref":"#/definitions/common.StandardError"
"$ref":"#/definitions/errors.StandardError"
}
}
}
}
}
}
...
@@ -807,7 +963,11 @@
...
@@ -807,7 +963,11 @@
},
},
"/gdd/normals":{
"/gdd/normals":{
"get":{
"get":{
"description":"get gdd normals",
"security":[
{
"ApiKeyAuth":[]
}
],
"consumes":[
"consumes":[
"application/json"
"application/json"
],
],
...
@@ -815,26 +975,14 @@
...
@@ -815,26 +975,14 @@
"application/json"
"application/json"
],
],
"tags":[
"tags":[
"Gdd"
"Gdd",
"public"
],
],
"summary":"Get gdd normals",
"summary":"Get GDD normals over the past 30 years",
"parameters":[
"parameters":[
{
{
"enum":[
"enum":[
"corn",
"corn"
"soybean",
"sunflower",
"tomato",
"sugar_beet",
"peanut",
"cotton",
"potato",
"wheat",
"pea",
"oat",
"spring_wheat",
"rice",
"sorghum"
],
],
"type":"string",
"type":"string",
"description":"Crop to calculate gdd for",
"description":"Crop to calculate gdd for",
...
@@ -862,91 +1010,25 @@
...
@@ -862,91 +1010,25 @@
"name":"accumulate",
"name":"accumulate",
"in":"query",
"in":"query",
"required":true
"required":true
}
],
"responses":{
"200":{
"description":"OK",
"schema":{
"$ref":"#/definitions/models.GddResponse"
}
},
"400":{
"description":"Bad Request",
"schema":{
"$ref":"#/definitions/common.StandardError"
}
}
}
}
},
"/gdd/stages":{
"get":{
"description":"Get stages",
"consumes":[
"application/json"
],
"produces":[
"application/json"
],
"tags":[
"Maturity"
],
"summary":"Get stages",
"parameters":[
{
"type":"number",
"description":"Latitude to search for",
"name":"latitude",
"in":"query",
"required":true
},
},
{
{
"type":"number",
"type":"number",
"description":"Longitude to search for",
"description":"number of times to repeat the request. When included with planting date, will extrapolate plantingdate -\u003e end of repeatYears range",
"name":"longitude",
"name":"repeatYears",
"in":"query",
"in":"query"
"required":true
},
{
"type":"string",
"description":"Plant date, ISO8601 or RFC3339 format",