Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleSummary


Excerpt
 Provides a list of allergens available which are identified by an authority and may be present in foods.

  


Note: If you are upgrading to Gen API 3.1 (or later) you will want to reference this page.

Style
.resourceUrl {	
	font-weight: bold;
	font-family: 'lucida console', 'courier new', monospace;
	margin-left: 12px;
}


Style
.httpVerb { 
	border: solid 1px green; 
	background-color: #e0f5e0;
	padding: 5px;
}



Panel
borderColorblack
bgColor#f5fff5
borderWidth1
titleBGColor#e0e0e0
borderStylesolid
titleResource


Span
classhttpVerb
POST


Span
classresourceUrl
/rest/FoodQueryService.svc/ListAllergens



Panel
borderColorblack
bgColor#ffffff
borderWidth1
titleBGColor#f5f5f5
borderStylesolid
titleRequest


Info

The request body is empty.



Examples


Code Block
titleExample Request
request={ }


Code Block
languagejs
titleExample Response
 {
    "Allergens": [
        {
            "Name": {
                "en": "Egg",
                "es": "Huevo",
                "fr": "Oeuf"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0191-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Fish",
                "es": "Pescados",
                "fr": "Poissons"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0192-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Milk",
                "es": "Leche",
                "fr": "Lait"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0193-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Peanut",
                "es": "Cacahuete",
                "fr": "Arachide"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0194-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Shellfish",
                "es": "Crustáceos",
                "fr": "Mollusques et crustacés"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0195-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Soy",
                "es": "Soya",
                "fr": "Soja"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0196-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Tree Nuts",
                "es": "Tuercas del árbol",
                "fr": "Noix"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0197-0000-ff88-2a01e505d63d"
        },
        {
            "Name": {
                "en": "Wheat",
                "es": "Trigo",
                "fr": "Blé"
            },
            "ParentId": "f01975c0-27c0-0009-ff88-2a01e505d63d",
            "ParentGroupName": {
                "en-US": "Allergens"
            },
            "GroupType": 65,
            "NutrientIds": [],
            "FoodIds": [],
            "ConsumerIds": [],
            "AllergenRules": {},
            "Id": "f01975c0-0198-0000-ff88-2a01e505d63d"
        }
    ],
    "Status": 0
}


Code Block
languagejs
linenumberstrue