GET api/HotelLocation?country={country}

Gets location matching the specified country.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
country

The country to filter the location by.

string

Required

Body Parameters

None.

Response Information

Resource Description

A list of locations matching the country.

Collection of HotelLocation
NameDescriptionTypeAdditional information
locationID

The unique identifier of the location.

integer

None.

locationName

The name of the location.

string

None.

country

The name of the Country.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "locationID": 1,
    "locationName": "sample string 2",
    "country": "sample string 3"
  },
  {
    "locationID": 1,
    "locationName": "sample string 2",
    "country": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfHotelLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <HotelLocation>
    <country>sample string 3</country>
    <locationID>1</locationID>
    <locationName>sample string 2</locationName>
  </HotelLocation>
  <HotelLocation>
    <country>sample string 3</country>
    <locationID>1</locationID>
    <locationName>sample string 2</locationName>
  </HotelLocation>
</ArrayOfHotelLocation>