GET v2/plantings/{plantingId}/rainfall.{ext}
Returns rainfall data
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
plantingId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
RainfallDataName | Description | Type | Additional information |
---|---|---|---|
StartDate |
start date |
date |
None. |
EndDate |
end date |
date |
None. |
WeatherStations |
weather stations |
Collection of string |
None. |
RainfallModel |
rainfall model |
Collection of WeatherEventViewModel |
None. |
AveragedDataMode |
averaged data mode |
boolean |
None. |
PlantingId |
planting ID |
integer |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{ "StartDate": "2025-01-25T04:43:57.3209827-08:00", "EndDate": "2025-01-25T04:43:57.3209827-08:00", "WeatherStations": [ "sample string 1", "sample string 2" ], "RainfallModel": [ { "EventDate": "2025-01-25T04:43:57.3209827-08:00", "RainfallAmount": 2.0, "ET": 3.0, "Source": "sample string 4" }, { "EventDate": "2025-01-25T04:43:57.3209827-08:00", "RainfallAmount": 2.0, "ET": 3.0, "Source": "sample string 4" } ], "AveragedDataMode": true, "PlantingId": 4 }
application/xml, text/xml
Sample:
<RainfallData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <StartDate>2025-01-25T04:43:57.3209827-08:00</StartDate> <EndDate>2025-01-25T04:43:57.3209827-08:00</EndDate> <WeatherStations> <string>sample string 1</string> <string>sample string 2</string> </WeatherStations> <RainfallModel> <WeatherEventViewModel> <EventDate>2025-01-25T04:43:57.3209827-08:00</EventDate> <RainfallAmount>2</RainfallAmount> <ET>3</ET> <Source>sample string 4</Source> </WeatherEventViewModel> <WeatherEventViewModel> <EventDate>2025-01-25T04:43:57.3209827-08:00</EventDate> <RainfallAmount>2</RainfallAmount> <ET>3</ET> <Source>sample string 4</Source> </WeatherEventViewModel> </RainfallModel> <AveragedDataMode>true</AveragedDataMode> <PlantingId>4</PlantingId> </RainfallData>