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