@@ -15,8 +15,9 @@ The data in mongodb has the following fields:
Go to ```/docs``` to view the Swagger generated API docs
#### API Endpoints
*```POST /api/:product/:year```
* Required url params: ```product``` and ```year```. Product is the crop (corn and soybean only supported)
* Body requires latitude and longitude
* Required url params: ```product``` and ```year```. Product is the crop (supports corn, soybean, wheat, tomatoes, potatoes, peas, sunflowers, sugar beets, etc.)
*```product``` must be singular. As in, send "soybean" not "soybeans"
* Body requires ```latitude``` and ```longitude```, ```t_base``` is an optional parameter if a farmer decides to set their own base temperater in fahrenheit
* returns the gdd calculated for that year up to the most recent date of the year. If the year is before the current, the data will cover 01/01 to 12/31. If it is the current year, 01/01 - current date. But the current year is not included