GET v2/commodity-types.json
Returns a complete list of commodity types in CropManage.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of CommodityTypeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
commodity type ID |
integer |
None. |
| Name |
commodity type name |
string |
None. |
| IconPath |
commodity type icon path, used in planting settings |
string |
None. |
| HarvestOnce |
If false, commodity type is harvest multiple times in a season (e.g. strawberry) |
boolean |
None. |
| IsActive |
In general, commodity types are set to active. If this field is false, commodity type is currently not used by the system. |
boolean |
None. |
| CommodityTypeCalculator |
string containing the name of the calculator used for recommendation equations. |
string |
None. |
| YieldUnitId |
Yield unit for the commodity. 1 is lbs, 2 is tons. |
integer |
None. |
Response Formats
application/json, text/json, text/html
Sample:
[
{
"Id": 1,
"Name": "sample string 2",
"IconPath": "sample string 3",
"HarvestOnce": true,
"IsActive": true,
"CommodityTypeCalculator": "sample string 6",
"YieldUnitId": 1
},
{
"Id": 1,
"Name": "sample string 2",
"IconPath": "sample string 3",
"HarvestOnce": true,
"IsActive": true,
"CommodityTypeCalculator": "sample string 6",
"YieldUnitId": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfCommodityTypeModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CommodityTypeModel>
<Id>1</Id>
<Name>sample string 2</Name>
<IconPath>sample string 3</IconPath>
<HarvestOnce>true</HarvestOnce>
<IsActive>true</IsActive>
<CommodityTypeCalculator>sample string 6</CommodityTypeCalculator>
<YieldUnitId>1</YieldUnitId>
</CommodityTypeModel>
<CommodityTypeModel>
<Id>1</Id>
<Name>sample string 2</Name>
<IconPath>sample string 3</IconPath>
<HarvestOnce>true</HarvestOnce>
<IsActive>true</IsActive>
<CommodityTypeCalculator>sample string 6</CommodityTypeCalculator>
<YieldUnitId>1</YieldUnitId>
</CommodityTypeModel>
</ArrayOfCommodityTypeModel>