GET api/field/nutrient_list
The full list of available Nutrients
Request Information
Authorization is required
Response Codes
- OK (200)
- BadRequest (400)
- Unauthorized (401)
- NotFound (404)
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Returns a list of all available Nutrients
Collection of nutrientName | Description | Type | Additional information |
---|---|---|---|
NutrientID |
The ID value for a Nutrient item |
integer |
None. |
NutrientName |
The Text value for a Nutrient item |
string |
None. |
NutrientFormulae |
The Formulae value for a Nutrient item |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "NutrientID": 1, "NutrientName": "sample string 2", "NutrientFormulae": "sample string 3" }, { "NutrientID": 1, "NutrientName": "sample string 2", "NutrientFormulae": "sample string 3" } ]
application/xml, text/xml
Sample:
<ArrayOfnutrient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RB209_WebApi.Models.Field"> <nutrient> <NutrientFormulae>sample string 3</NutrientFormulae> <NutrientID>1</NutrientID> <NutrientName>sample string 2</NutrientName> </nutrient> <nutrient> <NutrientFormulae>sample string 3</NutrientFormulae> <NutrientID>1</NutrientID> <NutrientName>sample string 2</NutrientName> </nutrient> </ArrayOfnutrient>