GET Farm/GetFarms?CustID={CustID}&FieldList={FieldList}
Returns a list of farms by CustID (GrowerID)
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| CustID |
CustID of the customer on the farm. |
string |
Required |
| FieldList |
Optional FieldList FOR FUTURE USE. (optional) |
string |
Default value is string.Empty |
Body Parameters
Response Information
Resource Description
Returns a list of farms by CustID (GrowerID)
AgvFarmLimited| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
Status of the API call. |
string | |
| Message |
Message of the API call. |
string | |
| Count |
Count of how many Farms JSON dictionaries. |
string | |
| Farms |
JSON dictionary of Farm. |
Collection of Farm |
Response Formats
application/json, text/json
Sample:
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "sample string 3",
"Farms": [
{
"FarmName": "sample string 1",
"FarmKey": "sample string 2",
"FarmDescription": "sample string 3"
},
{
"FarmName": "sample string 1",
"FarmKey": "sample string 2",
"FarmDescription": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<AgvFarmLimited xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Farm">
<Count>sample string 3</Count>
<Farms>
<Farm>
<FarmDescription>sample string 3</FarmDescription>
<FarmKey>sample string 2</FarmKey>
<FarmName>sample string 1</FarmName>
</Farm>
<Farm>
<FarmDescription>sample string 3</FarmDescription>
<FarmKey>sample string 2</FarmKey>
<FarmName>sample string 1</FarmName>
</Farm>
</Farms>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
</AgvFarmLimited>