GET v2/ranches/{ranchGuid}/weather-stations.{ext}

Returns weather stations associated with a ranch

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ranchGuid

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of WeatherStationCurrentModel
NameDescriptionTypeAdditional information
Id

weather station ID

integer

None.

External_Id

weather station external ID

string

None.

Name

weather station name

string

None.

Distance

distance from ranch, in miles

integer

None.

NearestCity

nearest city

string

None.

County

county name

string

None.

Priority

priority

integer

None.

ActiveStation

weather station active status. Deprecation warning: may be removed in the future. Using an object that can be managed by a single data field is excessive.

WeatherStationActive

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "Id": 1,
    "External_Id": "sample string 2",
    "Name": "sample string 3",
    "Distance": 4,
    "NearestCity": "sample string 5",
    "County": "sample string 6",
    "Priority": 7,
    "ActiveStation": {
      "Id": 1,
      "Active": true
    }
  },
  {
    "Id": 1,
    "External_Id": "sample string 2",
    "Name": "sample string 3",
    "Distance": 4,
    "NearestCity": "sample string 5",
    "County": "sample string 6",
    "Priority": 7,
    "ActiveStation": {
      "Id": 1,
      "Active": true
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfWeatherStationCurrentModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <WeatherStationCurrentModel>
    <Id>1</Id>
    <External_Id>sample string 2</External_Id>
    <Name>sample string 3</Name>
    <Distance>4</Distance>
    <NearestCity>sample string 5</NearestCity>
    <County>sample string 6</County>
    <Priority>7</Priority>
    <ActiveStation>
      <Id>1</Id>
      <Active>true</Active>
    </ActiveStation>
  </WeatherStationCurrentModel>
  <WeatherStationCurrentModel>
    <Id>1</Id>
    <External_Id>sample string 2</External_Id>
    <Name>sample string 3</Name>
    <Distance>4</Distance>
    <NearestCity>sample string 5</NearestCity>
    <County>sample string 6</County>
    <Priority>7</Priority>
    <ActiveStation>
      <Id>1</Id>
      <Active>true</Active>
    </ActiveStation>
  </WeatherStationCurrentModel>
</ArrayOfWeatherStationCurrentModel>