GET API/RoomTypes/GetRoomTypes/{HotelId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of Roomtypes| Name | Description | Type | Additional information |
|---|---|---|---|
| Roomtype | string |
None. |
|
| Noofrooms | integer |
None. |
|
| Maxroom | integer |
None. |
|
| Extrabed | integer |
None. |
|
| RackSingle | decimal number |
None. |
|
| RackDouble | decimal number |
None. |
|
| RackTriple | decimal number |
None. |
|
| RackQuadruple | decimal number |
None. |
|
| Roomimage | string |
None. |
|
| Amenities | string |
None. |
|
| UserId | integer |
None. |
|
| HotelId | integer |
None. |
|
| RoomId | integer |
None. |
|
| Maxchild | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Roomtype": "sample string 1",
"Noofrooms": 2,
"Maxroom": 3,
"Extrabed": 4,
"RackSingle": 1.0,
"RackDouble": 1.0,
"RackTriple": 1.0,
"RackQuadruple": 1.0,
"Roomimage": "sample string 5",
"Amenities": "sample string 6",
"UserId": 7,
"HotelId": 8,
"RoomId": 9,
"Maxchild": 1
},
{
"Roomtype": "sample string 1",
"Noofrooms": 2,
"Maxroom": 3,
"Extrabed": 4,
"RackSingle": 1.0,
"RackDouble": 1.0,
"RackTriple": 1.0,
"RackQuadruple": 1.0,
"Roomimage": "sample string 5",
"Amenities": "sample string 6",
"UserId": 7,
"HotelId": 8,
"RoomId": 9,
"Maxchild": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfRoomtypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<Roomtypes>
<Amenities>sample string 6</Amenities>
<Extrabed>4</Extrabed>
<HotelId>8</HotelId>
<Maxchild>1</Maxchild>
<Maxroom>3</Maxroom>
<Noofrooms>2</Noofrooms>
<RackDouble>1</RackDouble>
<RackQuadruple>1</RackQuadruple>
<RackSingle>1</RackSingle>
<RackTriple>1</RackTriple>
<RoomId>9</RoomId>
<Roomimage>sample string 5</Roomimage>
<Roomtype>sample string 1</Roomtype>
<UserId>7</UserId>
</Roomtypes>
<Roomtypes>
<Amenities>sample string 6</Amenities>
<Extrabed>4</Extrabed>
<HotelId>8</HotelId>
<Maxchild>1</Maxchild>
<Maxroom>3</Maxroom>
<Noofrooms>2</Noofrooms>
<RackDouble>1</RackDouble>
<RackQuadruple>1</RackQuadruple>
<RackSingle>1</RackSingle>
<RackTriple>1</RackTriple>
<RoomId>9</RoomId>
<Roomimage>sample string 5</Roomimage>
<Roomtype>sample string 1</Roomtype>
<UserId>7</UserId>
</Roomtypes>
</ArrayOfRoomtypes>