GET api/FavoriteHotels

Gets all Favorite Hotels Details.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of Favorite hotels and it's Details

Collection of FavoriteHotel
NameDescriptionTypeAdditional information
hotelID

The unique identifier of the hotel.

integer

None.

hotelName

The name of the hotel.

string

None.

locationID

The location identifier of the hotel.

integer

None.

cost

The cost of the hotel.

decimal number

None.

roomDetails

The details of the hotel rooms.

string

None.

aboutHotel

Information about the hotel.

string

None.

imageURL

The URL of the hotel image.

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "hotelID": 1,
    "hotelName": "sample string 2",
    "locationID": 3,
    "cost": 4.0,
    "roomDetails": "sample string 5",
    "aboutHotel": "sample string 6",
    "imageURL": "sample string 7"
  },
  {
    "hotelID": 1,
    "hotelName": "sample string 2",
    "locationID": 3,
    "cost": 4.0,
    "roomDetails": "sample string 5",
    "aboutHotel": "sample string 6",
    "imageURL": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFavoriteHotel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models">
  <FavoriteHotel>
    <aboutHotel>sample string 6</aboutHotel>
    <cost>4</cost>
    <hotelID>1</hotelID>
    <hotelName>sample string 2</hotelName>
    <imageURL>sample string 7</imageURL>
    <locationID>3</locationID>
    <roomDetails>sample string 5</roomDetails>
  </FavoriteHotel>
  <FavoriteHotel>
    <aboutHotel>sample string 6</aboutHotel>
    <cost>4</cost>
    <hotelID>1</hotelID>
    <hotelName>sample string 2</hotelName>
    <imageURL>sample string 7</imageURL>
    <locationID>3</locationID>
    <roomDetails>sample string 5</roomDetails>
  </FavoriteHotel>
</ArrayOfFavoriteHotel>