GET api/organicmaterial/organicmaterialtype_item/{organicmaterialtypeid}
Organic Material Type of Organic Material Type ID provided
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
organicmaterialtypeid |
The Organic Material Type ID |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns the Organic Material Type name
organicmaterialtypeitemName | Description | Type | Additional information |
---|---|---|---|
OrganicMaterialTypeName |
The Text value for Organic Material Type |
string |
None. |
DryMatter |
The Dry Matter (%) of the Organic Material |
decimal number |
None. |
TotalN |
The Total Nitrogen (kg/Tonne or kg/m3) in the Organic Material |
decimal number |
None. |
TotalP |
The Total Phosphate (kg/Tonne or kg/m3) in the Organic Material |
decimal number |
None. |
TotalK |
The Total Potash (kg/Tonne or kg/m3) in the Organic Material |
decimal number |
None. |
TotalMg |
The Total Magnesium (kg/Tonne or kg/m3) in the Organic Material |
decimal number |
None. |
TotalS |
The Total Sulphur (kg/Tonne or kg/m3) in the Organic Material |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "OrganicMaterialTypeName": "sample string 1", "DryMatter": 1.0, "TotalN": 1.0, "TotalP": 1.0, "TotalK": 1.0, "TotalMg": 1.0, "TotalS": 1.0 }
application/xml, text/xml
Sample:
<organicmaterialtypeitem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.OrganicMaterial"> <DryMatter>1</DryMatter> <OrganicMaterialTypeName>sample string 1</OrganicMaterialTypeName> <TotalK>1</TotalK> <TotalMg>1</TotalMg> <TotalN>1</TotalN> <TotalP>1</TotalP> <TotalS>1</TotalS> </organicmaterialtypeitem>