Get Allergen Classes
post
/config/sim/v2/menuItems/getAllergenClasses
Gets all the Allergen Classes
Request
Supported Media Types
- application/json
- multipart/form-data
Allergen class get request body.
Root Schema : schema
Type:
Show Source
object
-
include:
string
If specified, limits the data returned to these fields.Example:
hierUnitId, objectNum, name
-
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 and allergenCodes.Example:
objectNum:asc
-
searchCriteria:
string
If specified, returns records that match the criteria. Allowed fields are objectNum, name and allergenCodes.Example:
where equals(objectNum, 2)
Response
Supported Media Types
- application/json
200 Response
A collection of Allergen Classes.
Nested Schema : AllergenClass
Type:
object
Allergen Class record
Show Source
-
allergenCodes:
string
Allergen codes listed as comma-separated values for an Allergen Class.Example:
Milk,Eggs,Fish
-
hierUnitId:
integer
Hier Unit Id of the Enterprise.Example:
7
-
name:
object name
Name of the Allergen Class.
-
objectNum:
integer
Object Number of the Allergen Class.Example:
1
Nested Schema : name
Type:
object
Name of the Allergen Class.
Example:
{
"1":"Entp",
"2":"AllergenClass",
"3":"Emp"
}