GET api/arable/potatovariety_list/{potatogroupid}
The filtered list of available Potato Varieties for the provided Potato Group ID (only required for Arable Potato crops)
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
potatogroupid |
The Potato Group ID to filter on |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns a list of filtered available Potato Varieties by Potato Group ID
Collection of potatovarietyName | Description | Type | Additional information |
---|---|---|---|
PotatoVarietyID |
The ID value for a Potato Variety item |
integer |
None. |
PotatoVarietyName |
The Text value for a Potato Variety item |
string |
None. |
PotatoGroupID |
The Potato Group ID for a Potato Variety item |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "PotatoVarietyID": 1, "PotatoVarietyName": "sample string 2", "PotatoGroupID": 3 }, { "PotatoVarietyID": 1, "PotatoVarietyName": "sample string 2", "PotatoGroupID": 3 } ]
application/xml, text/xml
Sample:
<ArrayOfpotatovariety xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Arable"> <potatovariety> <PotatoGroupID>3</PotatoGroupID> <PotatoVarietyID>1</PotatoVarietyID> <PotatoVarietyName>sample string 2</PotatoVarietyName> </potatovariety> <potatovariety> <PotatoGroupID>3</PotatoGroupID> <PotatoVarietyID>1</PotatoVarietyID> <PotatoVarietyName>sample string 2</PotatoVarietyName> </potatovariety> </ArrayOfpotatovariety>