ListAllergens - Resource

Summary


 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.

Resource


POST /rest/FoodQueryService.svc/ListAllergens

Request

The request body is empty.

Examples


Example Request
request={ }
Example 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
}