GET api/v1/Hotel/GetHotelRooms?hotel={hotel}&checkInDate={checkInDate}&checkOutDate={checkOutDate}&minPrice={minPrice}&maxPrice={maxPrice}&minRank={minRank}&sortType={sortType}

获取指定酒店分店的房间

请求信息(Request)

URI 参数

名称描述类型备注
hotel

酒店分店的ID

integer

Required

checkInDate

入住日期

date

Required

checkOutDate

退房日期

date

Required

minPrice

指定最低价格以上,0 代表不限定最低价格

integer

Default value is 0

maxPrice

指定最高价格以下,0 代表不限定最高价格

integer

Default value is 0

minRank

指定最低评价之上,0 代表不限定评价

integer

Default value is 0

sortType

排序类型 (None:不指定排序,Price:按价格从低到高排序,Rank:按评价从高到低排序)

SortType

Default value is None

Body 参数

None.

响应信息(Response)

资源描述

酒店房间列表

RequestResultOfIEnumerableOfHotelRoomDTO
名称描述类型备注
Data

HotelRoomDTO 集合

None.

Status

状态(0:成功,1:失败)

integer

None.

Message

导致失败的相关消息

string

None.

Total

集合总数,用于分页时使用

integer

None.

响应格式

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].Combos[0].Products[0]'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'HotelRoom' with type 'WLife.Application.DTOs.HotelRoomDTO'. Path 'Data[0].Combos[0].Products[0]'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: “WLife.Application.DTOs.DealSpecificationDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: “WLife.Application.DTOs.DealSpecificationDTO”类型的对象图包含循环,如果禁用引用跟踪,择无法对其进行序列化。