Get Nutrients
post
/config/sim/v2/menuItems/nutrientSets/getNutrients
Gets all the Nutrients
Request
Supported Media Types
- application/json
- multipart/form-data
Root Schema : schema
Type:
Show Source
object
-
include:
string
If specified, limits the data returned to these fields.Example:
hierUnitId, nutrientSetNutrientId
-
includeAll:
string
If this value is specified, the include parameter is ignored.
Value Description basic Forces the response to include all fields except option string details detailed Forces the response to include all fields including option string details Example:detailed
-
langIds:
string
If specified, limits translated strings returnedExample:
1,2,3
-
limit:
integer
If using paging, number of results returned in this page.Example:
100
-
offset:
integer
Starting resource record index. Not required if paging parameters are not supportedExample:
0
-
orderBy:
string
Sorts the response by the specified field name and sort order. Allowed fields are nutrientSetNutrientId, nutrientSetObjNum, nutritionNameObjNum.Example:
nutrientSetNutrientId:asc
-
searchCriteria:
string
If specified, returns records that match the criteria. Allowed fields are nutrientSetNutrientId, nutrientSetObjNum, nutritionNameObjNum.Example:
where equals(nutrientSetNutrientId, 45)
Response
Supported Media Types
- application/json
200 Response
Success
Nested Schema : NutrientSetNutrient
Type:
object
Nutrient record
Show Source
-
hierUnitId:
integer
Unique reference of the hierarchy unit. Only Enterprise hierarchy is allowed.Example:
3599
-
nutrientSetNutrientId:
integer
Unique Id of the nutrient.Example:
101
-
nutrientSetObjNum:
integer
Object number of the nutrient set.Example:
50
-
nutritionNameObjNum:
integer
Default Value:
0
Object number of the nutrition name.Example:8
-
quantity:
integer
Default Value:
0
quantity of the nutrient.Example:10
-
unitOfMeasure:
integer
Minimum Value:
1
Maximum Value:4
Default Value:1
An integer representing the unit of measurement for quantity. Acceptable values range from 1 to 4 (both inclusive).Unit Of Measurement Description 1 Calories 2 KiloJoules 3 Grams 4 Milligrams Example:2