Summary: Provides a label a food provided in the request. This food will not be saved to the database.
Request Type: ImageForFoodRequest
- Food
- Type: FoodDto
- The food you want a a label for. This is currently only supported for Recipes.
- LabelProfile
- Type: LabelProfileDto
- The label profile that will determine what type of label will be returned.
Response Type: ImageResponse
- Image
- Type: Stream
- The png encoded bitmap of the image.
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:gen="http://ns.esha.com/2013/genesisapi" xmlns:exlx="http://ns.esha.com/2013/exlx" xmlns:typ="http://ns.esha.com/2013/types"> <soap:Header/> <soap:Body> <gen:ImageForFoodRequest> <gen:LabelProfile> <exlx:Authority> <exlx:Id>BBF4846D-8400-43BB-944D-6021FDA98225</exlx:Id> <exlx:Regulation>U.S. 2016 NLEA</exlx:Regulation> </exlx:Authority> <exlx:LabelStyle>Standard</exlx:LabelStyle> <exlx:LabelFormat>Full</exlx:LabelFormat> <exlx:AlternateHeading> <typ:Value xml:lang="en-US">Sugar</typ:Value> </exlx:AlternateHeading> <exlx:ServingSize> <typ:Value xml:lang="en-US">1 scoop</typ:Value> </exlx:ServingSize> <exlx:ServingsPerContainer> <typ:Value xml:lang="en-US">1</typ:Value> </exlx:ServingsPerContainer> </gen:LabelProfile> <gen:Recipe> <exlx:Items> <exlx:FoodItem> <!-- Add item to Recipe --> <exlx:FoodId>752eb9c2-0001-0000-bede-d3a51c0fdeba</exlx:FoodId> <exlx:Amount> <exlx:Quantity Type="Double">100</exlx:Quantity> <exlx:UnitId>a7df0af5-0008-0000-7484-751e8eaf05c6</exlx:UnitId> </exlx:Amount> </exlx:FoodItem> </exlx:Items> </gen:Recipe> </gen:ImageForFoodRequest> </soap:Body> </soap:Envelope> |
...