GET api/field/secondcropgroup_list/{cropgroupid1}/{croptypeid1}

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 Groups 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 filter on

integer

Required

croptypeid1

The Crop Type ID of the first Crop to filter on

integer

Required

Body Parameters

None.

Response Information

Resource Description

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

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