GET api/Food/GetListingRegions?listingID={listingID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
listingID

integer

Required

Body Parameters

None.

Response Information

Resource Description

R_ListItem_Region
NameDescriptionTypeAdditional information
ListingID

integer

None.

ListRegion

Collection of R_ListRegion

None.

RegionID

integer

None.

RegionNickName

string

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

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

multipart/form-data

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