GET api/Room/{id}?aid={aid}&starttime={starttime}&endtime={endtime}&roomId={roomId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| aid | string |
Required |
|
| id | string |
Required |
|
| starttime | string |
Required |
|
| endtime | string |
Required |
|
| roomId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
HotelDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| Tel | string |
None. |
|
| lng | decimal number |
None. |
|
| lat | decimal number |
None. |
|
| Comments | integer |
None. |
|
| IsFavorites | boolean |
None. |
|
| Rooms | Collection of RoomInfo |
None. |
|
| Dlist | Collection of DiscountsInfo |
None. |
|
| Ambients | string |
None. |
|
| Services | string |
None. |
|
| Hygienes | string |
None. |
|
| CostPerformances | string |
None. |
|
| StarsStr | string |
None. |
|
| HotelOtrName | string |
None. |
|
| PreTimeDes | string |
None. |
|
| ID | string |
None. |
|
| Img | string |
None. |
|
| Name | string |
None. |
|
| Stars | string |
None. |
|
| Price | string |
None. |
|
| ProvideList | Collection of integer |
None. |
|
| Provides | string |
None. |
|
| DistanceName | string |
None. |
|
| Address | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Tel": "sample string 1",
"lng": 2.0,
"lat": 3.0,
"Comments": 4,
"IsFavorites": true,
"Rooms": [
{
"RoomID": "sample string 1",
"TypeName": "sample string 2",
"DefaultImage": "sample string 3",
"BriefInfo": "sample string 4",
"StorePrice": "sample string 5",
"Price": "sample string 6",
"IsOpen": true,
"RoomNum": 8,
"Plist": [
{
"PriceTypeName": "sample string 1",
"PriceType": 2,
"RoomNum": 3,
"OPrice": 4.0,
"Price": "sample string 5",
"IsCanPay": true
},
{
"PriceTypeName": "sample string 1",
"PriceType": 2,
"RoomNum": 3,
"OPrice": 4.0,
"Price": "sample string 5",
"IsCanPay": true
}
]
},
{
"RoomID": "sample string 1",
"TypeName": "sample string 2",
"DefaultImage": "sample string 3",
"BriefInfo": "sample string 4",
"StorePrice": "sample string 5",
"Price": "sample string 6",
"IsOpen": true,
"RoomNum": 8,
"Plist": [
{
"PriceTypeName": "sample string 1",
"PriceType": 2,
"RoomNum": 3,
"OPrice": 4.0,
"Price": "sample string 5",
"IsCanPay": true
},
{
"PriceTypeName": "sample string 1",
"PriceType": 2,
"RoomNum": 3,
"OPrice": 4.0,
"Price": "sample string 5",
"IsCanPay": true
}
]
}
],
"Dlist": [
{
"GradeName": "sample string 1",
"Discounts": 2.0,
"DiscountName": "sample string 3"
},
{
"GradeName": "sample string 1",
"Discounts": 2.0,
"DiscountName": "sample string 3"
}
],
"Ambients": "sample string 6",
"Services": "sample string 7",
"Hygienes": "sample string 8",
"CostPerformances": "sample string 9",
"StarsStr": "sample string 10",
"HotelOtrName": "sample string 11",
"PreTimeDes": "sample string 12",
"ID": "sample string 13",
"Img": "sample string 14",
"Name": "sample string 15",
"Stars": "sample string 16",
"Price": "sample string 17",
"ProvideList": [
1,
2
],
"Provides": "sample string 18",
"DistanceName": "sample string 19",
"Address": "sample string 20"
}
application/xml, text/xml
Sample:
<HotelDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">
<Address>sample string 20</Address>
<DistanceName>sample string 19</DistanceName>
<ID>sample string 13</ID>
<Img>sample string 14</Img>
<Name>sample string 15</Name>
<Price>sample string 17</Price>
<ProvideList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ProvideList>
<Provides>sample string 18</Provides>
<Stars>sample string 16</Stars>
<Ambients>sample string 6</Ambients>
<Comments>4</Comments>
<CostPerformances>sample string 9</CostPerformances>
<Dlist>
<DiscountsInfo>
<DiscountName>sample string 3</DiscountName>
<Discounts>2</Discounts>
<GradeName>sample string 1</GradeName>
</DiscountsInfo>
<DiscountsInfo>
<DiscountName>sample string 3</DiscountName>
<Discounts>2</Discounts>
<GradeName>sample string 1</GradeName>
</DiscountsInfo>
</Dlist>
<HotelOtrName>sample string 11</HotelOtrName>
<Hygienes>sample string 8</Hygienes>
<IsFavorites>true</IsFavorites>
<PreTimeDes>sample string 12</PreTimeDes>
<Rooms>
<RoomInfo>
<BriefInfo>sample string 4</BriefInfo>
<DefaultImage>sample string 3</DefaultImage>
<IsOpen>true</IsOpen>
<Plist>
<PriceInfo>
<IsCanPay>true</IsCanPay>
<OPrice>4</OPrice>
<Price>sample string 5</Price>
<PriceType>2</PriceType>
<PriceTypeName>sample string 1</PriceTypeName>
<RoomNum>3</RoomNum>
</PriceInfo>
<PriceInfo>
<IsCanPay>true</IsCanPay>
<OPrice>4</OPrice>
<Price>sample string 5</Price>
<PriceType>2</PriceType>
<PriceTypeName>sample string 1</PriceTypeName>
<RoomNum>3</RoomNum>
</PriceInfo>
</Plist>
<Price>sample string 6</Price>
<RoomID>sample string 1</RoomID>
<RoomNum>8</RoomNum>
<StorePrice>sample string 5</StorePrice>
<TypeName>sample string 2</TypeName>
</RoomInfo>
<RoomInfo>
<BriefInfo>sample string 4</BriefInfo>
<DefaultImage>sample string 3</DefaultImage>
<IsOpen>true</IsOpen>
<Plist>
<PriceInfo>
<IsCanPay>true</IsCanPay>
<OPrice>4</OPrice>
<Price>sample string 5</Price>
<PriceType>2</PriceType>
<PriceTypeName>sample string 1</PriceTypeName>
<RoomNum>3</RoomNum>
</PriceInfo>
<PriceInfo>
<IsCanPay>true</IsCanPay>
<OPrice>4</OPrice>
<Price>sample string 5</Price>
<PriceType>2</PriceType>
<PriceTypeName>sample string 1</PriceTypeName>
<RoomNum>3</RoomNum>
</PriceInfo>
</Plist>
<Price>sample string 6</Price>
<RoomID>sample string 1</RoomID>
<RoomNum>8</RoomNum>
<StorePrice>sample string 5</StorePrice>
<TypeName>sample string 2</TypeName>
</RoomInfo>
</Rooms>
<Services>sample string 7</Services>
<StarsStr>sample string 10</StarsStr>
<Tel>sample string 1</Tel>
<lat>3</lat>
<lng>2</lng>
</HotelDetail>