GET api/soil/getnutrientindexidfromvalue/{nutrientid}/{methodologyid}/{value}

Get a Nutrient Index ID from a provided Nutrient Value (kg/ha)

Request Information

Authorization is required

Response Codes

  • OK (200)
  • BadRequest (400)
  • Unauthorized (401)
  • NotFound (404)

URI Parameters

NameDescriptionTypeAdditional information
nutrientid

The Nutrient ID to filter on

integer

Required

methodologyid

The Methodology ID to filter on

integer

Required

value

The value of the Nutrient (kg/ha)

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

Returns the Nutrient Index ID

nutrientiditem
NameDescriptionTypeAdditional information
IndexID

The ID value for the Nutrient Index item

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IndexID": 1
}

application/xml, text/xml

Sample:
<nutrientiditem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Soil">
  <IndexID>1</IndexID>
</nutrientiditem>