GET api/MainHotelData/HotelRatings/{vendorcode}/{destination} 
HotelRatings returns the vendor's list of the hotel ratings for the given destination.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| vendorcode |
Three character Vendor Code. |
string |
Required |
| destination |
Three character destination code. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
HotelRatingsResponse containing the max rating, rating unit, and a list of hotels' ratings.
HotelRatingsResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelRatingUnitId | string |
None. |
|
| HotelRatings | Collection of HotelRating |
None. |
|
| MaxHotelRatingValue | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"HotelRatingUnitId": "sample string 1",
"HotelRatings": [
{
"ChainCode": "sample string 1",
"HotelCode": "sample string 2",
"HotelName": "sample string 3",
"HotelRatingBooster": true,
"LocationDescription": "sample string 5",
"Rating": 6.0,
"RemoteSource": "sample string 7"
},
{
"ChainCode": "sample string 1",
"HotelCode": "sample string 2",
"HotelName": "sample string 3",
"HotelRatingBooster": true,
"LocationDescription": "sample string 5",
"Rating": 6.0,
"RemoteSource": "sample string 7"
}
],
"MaxHotelRatingValue": 2.0
}
text/xml
Sample:
<HotelRatingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Trisept.TB.Services.DataAccess.MainHotelData.DataContracts">
<HotelRatingUnitId>sample string 1</HotelRatingUnitId>
<HotelRatings>
<HotelRating>
<ChainCode>sample string 1</ChainCode>
<HotelCode>sample string 2</HotelCode>
<HotelName>sample string 3</HotelName>
<HotelRatingBooster>true</HotelRatingBooster>
<LocationDescription>sample string 5</LocationDescription>
<Rating>6</Rating>
<RemoteSource>sample string 7</RemoteSource>
</HotelRating>
<HotelRating>
<ChainCode>sample string 1</ChainCode>
<HotelCode>sample string 2</HotelCode>
<HotelName>sample string 3</HotelName>
<HotelRatingBooster>true</HotelRatingBooster>
<LocationDescription>sample string 5</LocationDescription>
<Rating>6</Rating>
<RemoteSource>sample string 7</RemoteSource>
</HotelRating>
</HotelRatings>
<MaxHotelRatingValue>2</MaxHotelRatingValue>
</HotelRatingsResponse>