GET v2/plantings/{plantingId}/rainfall.{ext}

Returns rainfall data

Request Information

URI Parameters

NameDescriptionTypeAdditional information
plantingId

integer

Required

Body Parameters

None.

Response Information

Resource Description

RainfallData
NameDescriptionTypeAdditional 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": "2024-06-24T16:03:22.1966634-07:00",
  "EndDate": "2024-06-24T16:03:22.1966634-07:00",
  "WeatherStations": [
    "sample string 1",
    "sample string 2"
  ],
  "RainfallModel": [
    {
      "EventDate": "2024-06-24T16:03:22.1966634-07:00",
      "RainfallAmount": 2.0,
      "ET": 3.0,
      "Source": "sample string 4"
    },
    {
      "EventDate": "2024-06-24T16:03:22.1966634-07: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>2024-06-24T16:03:22.1966634-07:00</StartDate>
  <EndDate>2024-06-24T16:03:22.1966634-07:00</EndDate>
  <WeatherStations>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </WeatherStations>
  <RainfallModel>
    <WeatherEventViewModel>
      <EventDate>2024-06-24T16:03:22.1966634-07:00</EventDate>
      <RainfallAmount>2</RainfallAmount>
      <ET>3</ET>
      <Source>sample string 4</Source>
    </WeatherEventViewModel>
    <WeatherEventViewModel>
      <EventDate>2024-06-24T16:03:22.1966634-07:00</EventDate>
      <RainfallAmount>2</RainfallAmount>
      <ET>3</ET>
      <Source>sample string 4</Source>
    </WeatherEventViewModel>
  </RainfallModel>
  <AveragedDataMode>true</AveragedDataMode>
  <PlantingId>4</PlantingId>
</RainfallData>