Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Summary

 Provides a list of foods which are contained within groups which are marked as "Published" groups.  

Resource

POST /rest/FoodQueryService.svc/ListPublishedFoods

Request
ParameterTypeDescription
   

Examples

 

Example Request
POST /Rest/FoodQueryService.svc/ListPublishedFoods HTTP/1.1
Host: eshademo.cloudapp.net
Cache-Control: no-cache
Example Response
 {
    "Foods": [
        {
            "HaccpData": [],
            "CookMethod": null,
            "CookTemperature": null,
            "CookTime": null,
            "Instructions": null,
            "HaccpHeadingLevel": null,
            "PanSize": null,
            "PreparationTime": null,
            "ContentClaimReferenceId": null,
            "DefinedServingWeightConversion": null,
            "UseStaticAdditionalAllergenStatement": false,
            "UseStaticAllergenStatement": false,
            "UseStaticIngredientStatement": false,
            "FoodType": 82,
            "Name": {
                "en-US": "Genen Shouyu"
            },
            "CommonName": {
                "en-US": "Genen Shouyu"
            },
            "Description": null,
            "FoodTypeName": null,
            "VarietyName": null,
            "PrimaryDescriptor": null,
            "Title": null,
            "PreparationName": null,
            "OtherDescriptor": null,
            "ContentName": null,
            "MiscName": null,
            "DefiningAmount": {
                "Quantity": {
                    "Value": 0
                },
                "UnitId": "00000000-0000-0000-0000-000000000000"
            },
            "AmountCost": {
                "Amount": {
                    "Quantity": {
                        "Value": 0
                    },
                    "UnitId": "00000000-0000-0000-0000-000000000000"
                },
                "Cost": 0
            },
            "DefaultWeightUnitId": null,
            "ConversionMapId": null,
            "Conversions": [],
            "Items": [
                {
                    "FoodId": "dbfac0f0-42d3-0006-27c3-41e8c688e289",
                    "Amount": {
                        "Quantity": {
                            "Value": 2
                        },
                        "UnitId": "00000000-0000-0000-0000-000000000000"
                    },
                    "Note": ""
                },
                {
                    "FoodId": "dbfac0f0-28e2-0000-27c3-41e8c688e289",
                    "Amount": {
                        "Quantity": {
                            "Value": 1
                        },
                        "UnitId": "00000000-0000-0000-0000-000000000000"
                    },
                    "Note": ""
                },
                {
                    "FoodId": "dbfac0f0-bb75-0000-27c3-41e8c688e289",
                    "Amount": {
                        "Quantity": {
                            "Value": 2
                        },
                        "UnitId": "00000000-0000-0000-0000-000000000000"
                    },
                    "Note": ""
                },
                {
                    "FoodId": "dbfac0f0-5842-0000-27c3-41e8c688e289",
                    "Amount": {
                        "Quantity": {
                            "Value": 4
                        },
                        "UnitId": "00000000-0000-0000-0000-000000000000"
                    },
                    "Note": ""
                }
            ],
            "GlycemicIndex": {
                "Value": 0
            },
            "Created": null,
            "Modified": null,
            "LegacyKey": 147370296,
            "LegacyNutrientRefNum": null,
            "LegacyYieldKey": null,
            "UserCode": "15",
            "UsdaCode": null,
            "EshaCode": null,
            "OwnerName": "",
            "AlternateNames": [],
            "AllergenStatements": [
                {
                    "AllergenStatementText": {
                        "en-US": "",
                        "es-US": "",
                        "fr-CA": ""
                    },
                    "Authority": {
                        "Name": {
                            "en-US": "United States"
                        },
                        "Iso3166Alpha2": "US",
                        "Iso3166Alpha3": "",
                        "Iso3166Numeric": 840,
                        "Id": null
                    },
                    "AllergenGroups": [],
                    "IsUserGenerated": false,
                    "Id": null
                }
            ],
            "IngredientStatements": [
                {
                    "AlternateName": "Genen Shouyu",
                    "AlternateText": "Beef, PEAS AND CARROTS, FROZEN, BOILED, DRAINED, Cheese, cheddar, mild, shredded, Vodka Alcohol.",
                    "Language": "en-US",
                    "LanguageCode": 1,
                    "Id": null
                },
                {
                    "AlternateName": "Genen Shouyu",
                    "AlternateText": "Carne vacuna, PEAS AND CARROTS, FROZEN, BOILED, DRAINED, Cheese, cheddar, mild, shredded, Vodka.",
                    "Language": "es-MX",
                    "LanguageCode": 2,
                    "Id": null
                },
                {
                    "AlternateName": "Genen Shouyu",
                    "AlternateText": "Bœuf, PEAS AND CARROTS, FROZEN, BOILED, DRAINED, Cheese, cheddar, mild, shredded, Vodka.",
                    "Language": "fr-CA",
                    "LanguageCode": 3,
                    "Id": null
                }
            ],
            "Brand": {
                "Supplier": "",
                "Product": "",
                "Id": null
            },
            "GroupsIds": [],
            "NutrientTransformIds": [],
            "Images": [],
            "Id": "dbfac0f0-b138-08c8-27c3-41e8c688e289"
        },
 
...
        
    ],
    "Status": 0
}
 
  • No labels