Versions Compared

Key

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

...

Expand
titleREST Request

Code Block
POST http://localhost:80/rest/FoodEditService.svc/SetEULabel HTTP/1.1
Content-Type: text/plain
Host: localhost:80

request={
    "UserCode":"ABC-123",
    "GeneralOptions":{
        "EnServingSize":"EN SS EU",
        "HideGramOrMl":"False",
        "ServingSizeUoM":"0",
        "EnServingsPerContainer":"EN SPC EU",
        "EnAlternateHeading":"EN AH EU",
        "NumberFormattingLocal":"1"
    },
    "FormatOptions":{
        "UseUnroundedValuesWhenCalcPercentStandard":"False",
        "UseAbbreviations":"False",
        "ShowBilingual":"False",
        "HideDualDeclarationFootnote":"False",
        "HideStandardFootnote":"False",
        "IncludeRecipeNameInAllergenStatement":"False",
        "IncludeRecipeNameInIngredientStatement":"False",
        "Hide449ConversionChart":"False",
        "InsertLessThan2PctIngredientStatement":"False",       
        "ContainsLessThan2PctSorted":"False",       
        "UppercaseAllergenStatement":"False",
        "UppercaseIngredientStatement":"False",
        "UsePer100gOrPer100Ml":"0",
        "ShowOfWhich":"False",
        "PositionOfWhichBeforeNutrient":"False",
        "ShowPer100ColumnRIValues":"False",
        "ShowPerPortionColumn":"False",
        "ShowPerPortionRIValues":"False",
        "AlignValuesInColumn":"False",
        "ShowIngredientStatementWithAllergens":"False",
        "ShowContainsNegligibleAmountOfStmt":"False",
        "ProductIsBeverage":"False",
        "PackageContainsSinglePortion":"False"
    },
    "VoluntaryNutrients":{
        "ShowBiotin":"False",
        "ShowCalcium":"False",
        "ShowChloride":"False",
        "ShowChromium":"False",
        "ShowCopper":"False",
        "ShowFluoride":"False",
        "ShowFolate":"False",
        "ShowIodine":"False",
        "ShowIron":"False",
        "ShowMagnesium":"False",
        "ShowManganese":"False",
        "ShowMolybdenum":"False",
        "ShowMonoFat":"False",
        "ShowPantothenicAcid":"False",
        "ShowPhosphorus":"False",
        "ShowPolyFat":"False",
        "ShowPotassium":"False",
        "ShowSelenium":"False",
        "ShowStarch":"False",
        "ShowSugarAlcohol":"False",
        "ShowTotalDietaryFiber":"False",
        "ShowVitaminA_RE":"False",
        "ShowVitaminB1":"False",
        "ShowVitaminB12":"False",
        "ShowVitaminB2":"False",
        "ShowVitaminB3_NiacinEquiv":"False",
        "ShowVitaminB6":"False",
        "ShowVitaminC":"False",
        "ShowVitaminD_MCG":"False",
        "ShowVitaminE_AlphaToco":"False",
        "ShowVitaminK":"False",
        "ShowZinc":"False"
   },
    "NutrientOptions":{
        "FatBelowFiveTenths":"0",
        "CarbohydratesBelowFiveTenths":"0",
        "MonoFatBelowOneTenth":"0",
        "PolyFatBelowOneTenth":"0",
        "ProteinBelowFiveTenths":"0",
        "SaltBelowOneHundredth":"0",
        "ShowSaltIsNaturallyOccurring":"False",
        "SaturatedFatBelowOneTenth":"0",
        "StarchBelowFiveTenths":"0",
        "SugarAlcoholBelowFiveTenths":"0",
        "TotalDietaryFiberBelowFiveTenths":"0",
        "TotalSugarsBelowFiveTenths":"0",
    },
    "EditDetails":{
        "EditMessage":"Setting EU label on recipe",
        "EditCaller":{
            "Name":"Our PLM System"
        }
    }
}

Expand
titleREST Response

Code Block
{
    "UpdatedFoodsCount": 1,
    "Errors": null,
    "Status": {
        "StatusMessage": 200,
        "StatusCode": 200,
        "StatusDetail": null
    },
    "ResponseVersion": {}
}