POST api/hotel/2c/similar/hotels/{lang}

类似酒店信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

Body Parameters

TocSimilarHotelReqContract
NameDescriptionTypeAdditional information
top

integer

None.

fromtime

date

None.

hotelid

酒店编码

string

None.

citycode

城市编码

string

None.

Request Formats

application/json, text/json

Sample:
{
  "top": 1,
  "fromtime": "2024-12-23T20:07:44.4885378+08:00",
  "hotelid": "sample string 3",
  "citycode": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TocSimilarHotelReqContract'.

Response Information

Resource Description

类似酒店信息

ReturnResultOfListOfTocSimilarHotelRespContract
NameDescriptionTypeAdditional information
data

Collection of TocSimilarHotelRespContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "hotelid": "sample string 1",
      "hotelname": "sample string 2",
      "locationdescript": "sample string 3",
      "citycode": "sample string 4",
      "country": "sample string 5",
      "imageurl": "sample string 6",
      "tripadvisorrating": 7.1,
      "tripadratingimageurl": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/7.1-52242-5.svg",
      "tripadvisorreviewcount": 8,
      "facilitys": [
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        },
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        }
      ]
    },
    {
      "hotelid": "sample string 1",
      "hotelname": "sample string 2",
      "locationdescript": "sample string 3",
      "citycode": "sample string 4",
      "country": "sample string 5",
      "imageurl": "sample string 6",
      "tripadvisorrating": 7.1,
      "tripadratingimageurl": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/7.1-52242-5.svg",
      "tripadvisorreviewcount": 8,
      "facilitys": [
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        },
        {
          "iconname": "sample string 1",
          "facilityid": "sample string 2",
          "facility": "sample string 3",
          "notes": "sample string 4",
          "costinfo": "sample string 5"
        }
      ]
    }
  ],
  "code": 1,
  "message": "sample string 2"
}