Versions Compared

Key

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


Info
titleSummary


Excerpt
 Provides a list of nutrients available which could be present in some quantity in foods.

  


Note: If you are upgrading to Gen API 3.1 (or later) you will want to reference this page.

Style
.resourceUrl {	
	font-weight: bold;
	font-family: 'lucida console', 'courier new', monospace;
	margin-left: 12px;
}


Style
.httpVerb { 
	border: solid 1px green; 
	background-color: #e0f5e0;
	padding: 5px;
}



Panel
borderColorblack
bgColor#f5fff5
borderWidth1
titleBGColor#e0e0e0
borderStylesolid
titleResource


Span
classhttpVerb
POST


Span
classresourceUrl
/rest/FoodQueryService.svc/ListNutrients



Panel
borderColorblack
bgColor#ffffff
borderWidth1
titleBGColor#f5f5f5
borderStylesolid
titleRequest


Info
 The request body is empty.



Examples

 


Code Block
titleExample Request
request={ }


Code Block
languagejs
titleExample Response
 {
    "Nutrients": [
        {
            "Name": {
                "en-US": "Calories"
            },
            "UnitId": null,
            "LegacyKey": 0,
            "StandardKey": 0,
            "IsScalar": true,
            "Precision": null,
            "Id": "84a8709a-0000-0000-ebf9-90cea7d9d44f"
        },
...
        {
            "Name": {
                "en-US": "Net Carbs"
            },
            "UnitId": "e18c6bbd-0008-0000-b47b-3e1e9fe8d6f3",
            "LegacyKey": 1016,
            "StandardKey": 1016,
            "IsScalar": true,
            "Precision": null,
            "Id": "84a8709a-03f8-0000-ebf9-90cea7d9d44f"
        }
    ],
    "Status": 0
}


 
Code Block
languagejs
linenumberstrue