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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
listingID

integer

Required

Body Parameters

None.

Response Information

Resource Description

R_ListItem_Address
NameDescriptionTypeAdditional information
ListingID

integer

None.

Addresses

Collection of R_Address

None.

Response Formats

application/json, text/json

Sample:
{
  "listingID": 1,
  "addresses": [
    {
      "addressID": 1,
      "addressNickName": "sample string 2",
      "address": "sample string 3",
      "lonitude": "sample string 4",
      "latitude": "sample string 5"
    },
    {
      "addressID": 1,
      "addressNickName": "sample string 2",
      "address": "sample string 3",
      "lonitude": "sample string 4",
      "latitude": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<R_ListItem_Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <Addresses>
    <R_ListItem_Address.R_Address>
      <Address>sample string 3</Address>
      <AddressID>1</AddressID>
      <AddressNickName>sample string 2</AddressNickName>
      <Latitude>sample string 5</Latitude>
      <Lonitude>sample string 4</Lonitude>
    </R_ListItem_Address.R_Address>
    <R_ListItem_Address.R_Address>
      <Address>sample string 3</Address>
      <AddressID>1</AddressID>
      <AddressNickName>sample string 2</AddressNickName>
      <Latitude>sample string 5</Latitude>
      <Lonitude>sample string 4</Lonitude>
    </R_ListItem_Address.R_Address>
  </Addresses>
  <ListingID>1</ListingID>
</R_ListItem_Address>

multipart/form-data

Sample:
<R_ListItem_Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><Addresses><R_ListItem_Address.R_Address><Address>sample string 3</Address><AddressID>1</AddressID><AddressNickName>sample string 2</AddressNickName><Latitude>sample string 5</Latitude><Lonitude>sample string 4</Lonitude></R_ListItem_Address.R_Address><R_ListItem_Address.R_Address><Address>sample string 3</Address><AddressID>1</AddressID><AddressNickName>sample string 2</AddressNickName><Latitude>sample string 5</Latitude><Lonitude>sample string 4</Lonitude></R_ListItem_Address.R_Address></Addresses><ListingID>1</ListingID></R_ListItem_Address>