GET api/soil/nutrientindex_list/{nutrientid}/{methodologyid}
The filtered list of available Nutrient Indexes - filtered by Nutrient and Methodology
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 |
| methodologyid |
The Methodology ID to filter on |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Nutrient Index list details
Collection of nutrientindex| Name | Description | Type | Additional information |
|---|---|---|---|
| IndexID |
The ID value for the Nutrient Index item |
integer |
None. |
| Index |
The Text value for the Nutrient Index item |
string |
None. |
| MinRange |
The minimum value for the Nutrient Index item (including equal to) |
decimal number |
None. |
| MaxRange |
The maximum value for the Nutrient Index item (NOT including equal to) |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"IndexID": 1,
"Index": "sample string 2",
"MinRange": 3.0,
"MaxRange": 4.0
},
{
"IndexID": 1,
"Index": "sample string 2",
"MinRange": 3.0,
"MaxRange": 4.0
}
]
application/xml, text/xml
Sample:
<ArrayOfnutrientindex xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Soil">
<nutrientindex>
<Index>sample string 2</Index>
<IndexID>1</IndexID>
<MaxRange>4</MaxRange>
<MinRange>3</MinRange>
</nutrientindex>
<nutrientindex>
<Index>sample string 2</Index>
<IndexID>1</IndexID>
<MaxRange>4</MaxRange>
<MinRange>3</MinRange>
</nutrientindex>
</ArrayOfnutrientindex>