GET api/arable/potatogroup_list
The full list of available Potato Groups (only required for Arable Potato crops)
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Potato Groups
Collection of potatogroup| Name | Description | Type | Additional information |
|---|---|---|---|
| PotatoGroupID |
The ID value for a Potato Group item |
integer |
None. |
| PotatoGroupName |
The Text value for a Potato Group item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"PotatoGroupID": 1,
"PotatoGroupName": "sample string 2"
},
{
"PotatoGroupID": 1,
"PotatoGroupName": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfpotatogroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Arable">
<potatogroup>
<PotatoGroupID>1</PotatoGroupID>
<PotatoGroupName>sample string 2</PotatoGroupName>
</potatogroup>
<potatogroup>
<PotatoGroupID>1</PotatoGroupID>
<PotatoGroupName>sample string 2</PotatoGroupName>
</potatogroup>
</ArrayOfpotatogroup>