GET api/arable/croptype_list

The full list of available Crop Types

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 Types

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>