GET api/arable/cropgroup_list
Full list of available Crop Groups
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 Crop Groups
Collection of cropgroupName | Description | Type | Additional information |
---|---|---|---|
CropGroupID |
The ID value for a Crop Group item |
integer |
None. |
CropGroupName |
The Text value for a Crop Group item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CropGroupID": 1, "CropGroupName": "sample string 2" }, { "CropGroupID": 1, "CropGroupName": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfcropgroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Arable"> <cropgroup> <CropGroupID>1</CropGroupID> <CropGroupName>sample string 2</CropGroupName> </cropgroup> <cropgroup> <CropGroupID>1</CropGroupID> <CropGroupName>sample string 2</CropGroupName> </cropgroup> </ArrayOfcropgroup>