GET v2/crop-stages.json?commodityTypeId={commodityTypeId}

Returns a list of crop stages associated with a commodity type

Request Information

URI Parameters

NameDescriptionTypeAdditional information
commodityTypeId

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

Id / Name pair

Collection of CropStageJSONModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2"
  },
  {
    "Id": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCropStageJSONModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CropStageJSONModel>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </CropStageJSONModel>
  <CropStageJSONModel>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </CropStageJSONModel>
</ArrayOfCropStageJSONModel>