GET api/arable/croptype_list/{cropgroupid}
The filtered list of available Crop Types - filtered by Crop Group
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
cropgroupid |
The Crop Group ID to filter on |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Crop Types for the provided Crop Group ID
Collection of croptypeName | Description | Type | Additional information |
---|---|---|---|
CropTypeID |
The ID value for a Crop Type item |
integer |
None. |
CropTypeName |
The Text value for a Crop Type item |
string |
None. |
CropGroupID |
The Crop Group ID value for a Crop Type item |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CropTypeID": 1, "CropTypeName": "sample string 2", "CropGroupID": 3 }, { "CropTypeID": 1, "CropTypeName": "sample string 2", "CropGroupID": 3 } ]
application/xml, text/xml
Sample:
<ArrayOfcroptype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Arable"> <croptype> <CropGroupID>3</CropGroupID> <CropTypeID>1</CropTypeID> <CropTypeName>sample string 2</CropTypeName> </croptype> <croptype> <CropGroupID>3</CropGroupID> <CropTypeID>1</CropTypeID> <CropTypeName>sample string 2</CropTypeName> </croptype> </ArrayOfcroptype>