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/SetCanadianLabel HTTP/1.1
Content-Type: text/plain
Host: localhost:80

request={
    "UserCode":"REC-987x",
    "GeneralOptions":{
        "RecommendationProfile":"Adult",
        "Style":"Standard",
        "DisplayType":"Full",
        "PrimaryLanguage":"French",
        "EnServingSize":"EN SS",
        "FrServingSize":"FR SS",
        "HideCalculatedServingSize":"false",
        "ServingSizeUoM":"0",
        "EnServingsPerContainer":"EN SPC",
        "FrServingsPerContainer":"FR SPC",
        "HideServingsPerContainer":"false",
        "EnAlternateHeading":"EN AH",
        "FrAlternateHeading":"FR AH",
        "DisplayServingSizeAs":"0",
        "DisplayServingsPerContainerAs":"0",
        "PrimaryLanguage":"English",
        "AmountInDisplay":"0",
        "EnHouseholdMeasureColumn0":"EN Col0",
        "FrHouseholdMeasureColumn0":"FR Col0",
        "EnHouseholdMeasureColumn2":"EN Col2",
        "FrHouseholdMeasureColumn2":"FR Col2",
        "Column2GramWeight":"10.0"
    },
    "VoluntaryNutrients":{
        "ShowBiotin":"false",
        "ShowChloride":"false",
        "ShowCholine":"false",
        "Showchromium":"false",
        "ShowCopper":"false",
        "ShowFolateDFE":"false",
        "ShowIodine":"false",
        "ShowKilojoules":"false",
        "ShowMagnesium":"false",
        "ShowManganese":"false",
        "ShowMolybdenum":"false",
        "ShowMonoFat":"false",
        "ShowOmega3FattyAcid":"false",
        "ShowOmega6FattyAcid":"false",
        "ShowPantothenicAcid":"false",
        "ShowPhosphorus":"false",
        "ShowPolyFat":"false",
        "ShowSelenium":"false",
        "ShowStarch":"false",
        "ShowSugarAlcohol":"false",
        "ShowTotalInsolubleFiber":"false",
        "ShowTotalSolubleFiber":"false",
        "ShowVitainAShowVitaminA_RAE":"falsetrue",
        "ShowVitaminB1":"false",
        "ShowVitaminB2ShowVitaminB12":"false",
        "ShowVitaminB12ShowVitaminB2":"false",
        "ShowVitaminB3_NiacinEquiv":"false",
        "ShowVitaminB6":"false",
        "ShowVitaminC":"false",
        "ShowVitaminD_MCG":"falsetrue",
        "ShowVitaminE_MG":"falsetrue",
        "ShowVitaminK":"false",
        "ShowZinc":"false"
    },
    "FormatOptions":{
        "UseAbbreviations":"false",
        "ShowBilingual":"false",
        "HideDualDeclarationFootnote":"false",
        "IncludeRecipeNameInAllergenStatement":"false",
        "IncludeRecipeNameInIngredientStatement":"false",
        "Hide449ConversionChart":"false",
        "UppercaseAllergenStatement":"false",
        "SeperatorInIngredientStatement":"0",
        "DisplayMicrogramsAs":"0",
        "RoundDVToZero":"false",
        "AbbreviateAmountPerServing":"false",
        "AlwaysWrapBilingualHeadings":"false",
        "UseShortenedNotASigSourceStatement":"false",
        "HideAmountInFootnote":"false",
        "ShowAmountPerServingHeadingInfants":"false",
    },
    "NutrientOptions":{ 
        "CaloriesDisplayAs":"0",
        "CaloriesIfLessThanZero":"0",
        "CaloriesCalculationMethod":"0",
        "CarbohydratesDisplayAs":"0",
        "CarbohydratesUseUnroundedValueCalculatingDV":"false",
        "CholesterolLessThan5mg":"0",
        "CholesterolHidePercent":"false",
        "CholesterolShowForInfants":"false",
        "CholesterolUseUnroundedValueCalculatingDV":"false",
        "FatDisplayAs":"0",
        "FatLessThanHalfGram":"0",
        "FatUseUnroundedValueCalculatingDV":"false",
        "KilojoulesDisplayAs":"0",
        "MonoFatDisplayAs":"0",
        "Omega3FattyAcidDisplayAs":"0",
        "Omega6FattyAcidDisplayAs":"0",
        "PantothenicAcidDisplayAs":"0",
        "PolyFatDisplayAs":"0",
        "PotassiumLessThan5mg":"0",
        "SaturatedFatDisplayAs":"0",
        "SaturatedFatLessThanHalfGram":"0",
        "SaturatedFatShowForInfants":"false",
        "SodiumLessThan5Mg":"0",
        "SugAlcoholDisplayAs":"0",
        "SugAlcoholEnglishSpecific":"[ENTER SPECIFIC SUGAR ALCOHOL IN ENGLISH]",
        "SugAlcoholFrenchSpecific":"FRENCH[ENTRER ALCOOL SUCRIQUE SPÉCIFIQUE EN FRANÇAIS]",
        "TotalDietaryFiberDisplayAs":"0",
        "TotalDietaryFiberUseUnroundedValueCalculatingDV":"false",
        "TotalInsolFiberDisplayAs":"0",
        "TotalSolFiberDisplayAs":"0",
        "TotalSugarsUseUnroundedValuesCalculatingDV":"false",
        "TransFatDisplayAs":"0",
        "TransFatLessThanHalfGram":"0",
        "TransFatShowForInfants":"false",
        "VitaminB1DisplayAs":"0",
        "VitaminB2DisplayAs":"0",
        "SatFatPlusTransFatUseUnroundedValueCalculatingDV":"false",
        "SaturatedPlusTransShowEvenInsignificant":"false",
        "TotalDietaryFiberShowEvenInsignificant":"false",
        "TotalSugarsShowEvenInsignificant":"false",
        "CholesterolShowEvenInsignificant":"false",
        "SodiumShowEvenInsignificant":"false",
        "PotassiumShowEvenInsignificant":"false",
        "IronShowEvenInsignificant":"true",
        "CalciumShowEvenInsignificant":"false",
        "TotalDietaryFiberShowSimplifiedSingleServing":"false",
        "PotassiumShowSimplifiedSingleServing":"false",
        "CalciumShowSimplifiedSingleServing":"false",
        "IronShowSimplifiedSingleServing":"false",
        "CholesterolShowSimplifiedSingleServing":"false"
    },
    "EditDetails":{
        "EditMessage":"Setting Canadian 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": {}
}