GET api/hotel/getlistbyname/{name}/{displayCount}/{lang}?cityCode={cityCode}

根據酒店名稱查詢酒店信息(已使用)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

酒店名稱

string

Required

displayCount

顯示記錄數

integer

Default value is 10

lang

語言(zh-HK代表繁體,zh-CN代表簡體,en-US代表英文)

string

Default value is zh-HK

cityCode

城市编号

string

Default value is

Body Parameters

None.

Response Information

Resource Description

根據酒店名稱查詢酒店信息(已使用)

ReturnResultOfListOfHotelContract
NameDescriptionTypeAdditional information
data

Collection of HotelContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "hotelcode": "sample string 1",
      "hotelname": "sample string 2",
      "citycode": "sample string 3",
      "location": "sample string 4",
      "rank": "sample string 5",
      "addr1": "sample string 6",
      "addr2": "sample string 7",
      "addr3": "sample string 8",
      "addr4": "sample string 9",
      "webaddress": "sample string 10",
      "generalphone": "sample string 11",
      "generalfax": "sample string 12",
      "generalemail": "sample string 13",
      "hotelname_zhtw": "sample string 14",
      "hotelname_zhcn": "sample string 15",
      "longitude": "samplestring16",
      "latitude": "samplestring17",
      "ext": "sample string 18"
    },
    {
      "hotelcode": "sample string 1",
      "hotelname": "sample string 2",
      "citycode": "sample string 3",
      "location": "sample string 4",
      "rank": "sample string 5",
      "addr1": "sample string 6",
      "addr2": "sample string 7",
      "addr3": "sample string 8",
      "addr4": "sample string 9",
      "webaddress": "sample string 10",
      "generalphone": "sample string 11",
      "generalfax": "sample string 12",
      "generalemail": "sample string 13",
      "hotelname_zhtw": "sample string 14",
      "hotelname_zhcn": "sample string 15",
      "longitude": "samplestring16",
      "latitude": "samplestring17",
      "ext": "sample string 18"
    }
  ],
  "code": 1,
  "message": "sample string 2"
}