Versions Compared

Key

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

Summary: Provides a label a food provided in the request. This food will not be saved to the database.

Request Type: ImageForFoodRequest

...

Code Block
titleREST Request
linenumberstrue
collapsetrue
POST http://localhost:80/rest/LabelBuilderServiceLabelImageService.svc/GetLabelImageForFood HTTP/1.1
Content-Type: text/plain
Host: localhost:80

request={
	"Food":{
        "$type":"Esha.DomainModel.Serialization.RecipeDto, Esha.DomainModel.Serialization",
        "Items":[{
            "FoodId":"752eb9c2-0001-0000-bede-d3a51c0fdeba",
            "Amount":{
                "Quantity":{
                    "Value":"100","Type":"Double"
                },
                "UnitId":"a7df0af5-0008-0000-7484-751e8eaf05c6"}
        }]
    },
    "LabelProfile":{
        "Authority":{
            "Id":"BBF4846D-8400-43BB-944D-6021FDA98225",
            "Regulation":"U.S. 2016 NLEA"
        },
        "LabelStyle":"Standard",
        "LabelFormat":"Full",
        "AlternateHeading":{"en-US":"New Heading"},
        "ServingSize":{"en-US":"1"},
        "ServingsPerContainer":{"en-US":"1"}
    },
}}

...