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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FoodItemID

integer

Required

Body Parameters

None.

Response Information

Resource Description

R_FoodItem_ListItem_Region
NameDescriptionTypeAdditional information
FoodItemID

integer

None.

ListRegion

Collection of R_FoodListRegion

None.

RegionID

integer

None.

RegionNickName

string

None.

ListingID

integer

None.

ListingNickName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "foodItemID": 1,
  "listRegion": [
    {
      "regionID": 1,
      "regionNickName": "sample string 2",
      "listingID": 3,
      "listingNickName": "sample string 4"
    },
    {
      "regionID": 1,
      "regionNickName": "sample string 2",
      "listingID": 3,
      "listingNickName": "sample string 4"
    }
  ],
  "regionID": 2,
  "regionNickName": "sample string 3",
  "listingID": 4,
  "listingNickName": "sample string 5"
}

application/xml, text/xml

Sample:
<R_FoodItem_ListItem_Region xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <ListingID>4</ListingID>
  <ListingNickName>sample string 5</ListingNickName>
  <RegionID>2</RegionID>
  <RegionNickName>sample string 3</RegionNickName>
  <FoodItemID>1</FoodItemID>
  <ListRegion>
    <R_FoodListRegion>
      <ListingID>3</ListingID>
      <ListingNickName>sample string 4</ListingNickName>
      <RegionID>1</RegionID>
      <RegionNickName>sample string 2</RegionNickName>
    </R_FoodListRegion>
    <R_FoodListRegion>
      <ListingID>3</ListingID>
      <ListingNickName>sample string 4</ListingNickName>
      <RegionID>1</RegionID>
      <RegionNickName>sample string 2</RegionNickName>
    </R_FoodListRegion>
  </ListRegion>
</R_FoodItem_ListItem_Region>

multipart/form-data

Sample:
<R_FoodItem_ListItem_Region xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><ListingID>4</ListingID><ListingNickName>sample string 5</ListingNickName><RegionID>2</RegionID><RegionNickName>sample string 3</RegionNickName><FoodItemID>1</FoodItemID><ListRegion><R_FoodListRegion><ListingID>3</ListingID><ListingNickName>sample string 4</ListingNickName><RegionID>1</RegionID><RegionNickName>sample string 2</RegionNickName></R_FoodListRegion><R_FoodListRegion><ListingID>3</ListingID><ListingNickName>sample string 4</ListingNickName><RegionID>1</RegionID><RegionNickName>sample string 2</RegionNickName></R_FoodListRegion></ListRegion></R_FoodItem_ListItem_Region>