GET api/soil/methodology_list/{nutrientid}
The filtered list of available Soil Methodologies - filtered by Nutrient
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| nutrientid |
The Nutrient ID to filter on |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Soil Methodology list details
Collection of methodologyindex| Name | Description | Type | Additional information |
|---|---|---|---|
| NutrientID |
The Nutrient ID value for a Methodology Index item |
integer |
None. |
| MethodologyID |
The ID value for a Methodology Index item |
integer |
None. |
| MethodologyName |
The Text value for a Methodology Index item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"NutrientID": 1,
"MethodologyID": 2,
"MethodologyName": "sample string 3"
},
{
"NutrientID": 1,
"MethodologyID": 2,
"MethodologyName": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfmethodologyindex xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Soil">
<methodologyindex>
<MethodologyID>2</MethodologyID>
<MethodologyName>sample string 3</MethodologyName>
<NutrientID>1</NutrientID>
</methodologyindex>
<methodologyindex>
<MethodologyID>2</MethodologyID>
<MethodologyName>sample string 3</MethodologyName>
<NutrientID>1</NutrientID>
</methodologyindex>
</ArrayOfmethodologyindex>