Get Nutrient Sets
post
/config/sim/v2/menuItems/getNutrientSets
Gets all the Nutrient Sets
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, objectNum
-
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 objectNum, name.Example:
objectNum:asc
-
searchCriteria:
string
If specified, returns records that match the criteria. Allowed fields are objectNum, name.Example:
where equals(objectNum, 45)
Response
Supported Media Types
- application/json
200 Response
Success
Nested Schema : NutrientSet
Type:
object
Nutrient Set record
Show Source
-
hierUnitId:
integer
Unique reference of the hierarchy unit. Only Enterprise hierarchy is allowed.Example:
3599
-
name:
object name
Name of the Nutrient Set
-
nutrients:
array nutrients
An array of nutrients belonging to the nutrient set.
-
objectNum:
integer
Object number of the nutrient set.Example:
10
Nested Schema : name
Type:
object
Name of the Nutrient Set
Example:
{
"1":"Entp",
"2":"Untm",
"3":"Emp"
}
Nested Schema : nutrients
Type:
array
An array of nutrients belonging to the nutrient set.
Show Source
-
Array of:
object items
A nutrient belonging to the nutrient set.
Nested Schema : items
Type:
object
A nutrient belonging to the nutrient set.
Show Source
-
nutrientSetNutrientId:
integer
Unique Id of the nutrient.Example:
101
-
nutritionNameObjNum:
integer
Object number of the nutrition name.Example:
8
-
quantity:
integer
quantity of the nutrient.Example:
10
-
unitOfMeasure:
integer
An integer representing the unit of measurement for quantity.
Unit Of Measurement Description 1 Calories 2 KiloJoules 3 Grams 4 Milligrams Example:2