Versions Compared

Key

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

...

Code Block
languagejs
titleREST Request
linenumberstrue
collapsetrue
POST http://localhost:80/rest/FoodQueryServiceFoodBuilderService.svc/GetAnalysisAnalyze 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"}
        },
        {
            "FoodId":"752eb9c2-0002-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"
    	}
    }
}

...