GET api/FoodCategory
Gets all food categories.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
An enumeration of food category names.
Collection of FoodCategoryName | Description | Type | Additional information |
---|---|---|---|
categoryID |
Gets or sets the category ID. |
integer |
None. |
categoryName |
Gets or sets the category name. |
string |
None. |
imageURL |
Gets or sets the image URL of the category. |
string |
None. |
description |
Gets or sets the description of the category. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "categoryID": 1, "categoryName": "sample string 2", "imageURL": "sample string 3", "description": "sample string 4" }, { "categoryID": 1, "categoryName": "sample string 2", "imageURL": "sample string 3", "description": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfFoodCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <FoodCategory> <categoryID>1</categoryID> <categoryName>sample string 2</categoryName> <description>sample string 4</description> <imageURL>sample string 3</imageURL> </FoodCategory> <FoodCategory> <categoryID>1</categoryID> <categoryName>sample string 2</categoryName> <description>sample string 4</description> <imageURL>sample string 3</imageURL> </FoodCategory> </ArrayOfFoodCategory>