GET api/field/secondcroptype_list/{cropgroupid1}/{croptypeid1}/{cropgroupid2}

Some Crops (both Arable and Grassland) allow a second Crop to be sown in the same Crop Year: The filtered list of available Second Crop Types after the first Crop

Request Information

Authorization is required

Response Codes

  • OK (200)
  • BadRequest (400)
  • Unauthorized (401)
  • NotFound (404)

URI Parameters

NameDescriptionTypeAdditional information
cropgroupid1

The Crop Group ID of the first Crop to filer on

integer

Required

croptypeid1

The Crop Type ID of the first Crop to filter on

integer

Required

cropgroupid2

The Crop Group ID of the second Crop to filter on

integer

Required

Body Parameters

None.

Response Information

Resource Description

Returns a list of all available Crop Types for a second Crop in the crop year

Collection of croptype
NameDescriptionTypeAdditional 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>