GET api/Food/GetFoodItemRating?FoodItemID={FoodItemID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FoodItemID

integer

Required

Body Parameters

None.

Response Information

Resource Description

R_FoodRating
NameDescriptionTypeAdditional information
Nutrition

decimal number

None.

Taste

decimal number

None.

RatingCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "nutrition": 1.0,
  "taste": 2.0,
  "ratingCount": 3
}

application/xml, text/xml

Sample:
<R_FoodRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <Nutrition>1</Nutrition>
  <RatingCount>3</RatingCount>
  <Taste>2</Taste>
</R_FoodRating>

multipart/form-data

Sample:
<R_FoodRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><Nutrition>1</Nutrition><RatingCount>3</RatingCount><Taste>2</Taste></R_FoodRating>