GET api/HotelLocation
Gets all location Details.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Location and it's Details
Collection of HotelLocationName | Description | Type | Additional 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>