GET api/RestaurantProfileLocations

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of RestaurantProfileLocationViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

RestaurantProfile

IdTextModel

None.

RestaurantLocation

ValueTextModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "RestaurantProfile": {
      "Id": 1,
      "Text": "sample string 2"
    },
    "RestaurantLocation": {
      "Value": "sample string 1",
      "Text": "sample string 2"
    }
  },
  {
    "Id": 1,
    "RestaurantProfile": {
      "Id": 1,
      "Text": "sample string 2"
    },
    "RestaurantLocation": {
      "Value": "sample string 1",
      "Text": "sample string 2"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfRestaurantProfileLocationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <RestaurantProfileLocationViewModel>
    <Id>1</Id>
    <RestaurantLocation>
      <Text>sample string 2</Text>
      <Value>sample string 1</Value>
    </RestaurantLocation>
    <RestaurantProfile>
      <Id>1</Id>
      <Text>sample string 2</Text>
    </RestaurantProfile>
  </RestaurantProfileLocationViewModel>
  <RestaurantProfileLocationViewModel>
    <Id>1</Id>
    <RestaurantLocation>
      <Text>sample string 2</Text>
      <Value>sample string 1</Value>
    </RestaurantLocation>
    <RestaurantProfile>
      <Id>1</Id>
      <Text>sample string 2</Text>
    </RestaurantProfile>
  </RestaurantProfileLocationViewModel>
</ArrayOfRestaurantProfileLocationViewModel>