POST api/hotel/agentsys/searchcache/ruleadd

酒店搜索缓存规则添加

Request Information

URI Parameters

None.

Body Parameters

TC_HotelCacheRuleRQContract
NameDescriptionTypeAdditional information
Items

规则列表

Collection of TC_HotelCacheRuleItemRQContract

None.

Request Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "citycode": "sample string 1",
      "airport": "sample string 2",
      "checkindate": "2024-12-23T20:07:58.1138245+08:00",
      "checkoutdate": "2024-12-23T20:07:58.1138245+08:00",
      "rooms": [
        {
          "adult": 1,
          "child": 2
        },
        {
          "adult": 1,
          "child": 2
        }
      ]
    },
    {
      "citycode": "sample string 1",
      "airport": "sample string 2",
      "checkindate": "2024-12-23T20:07:58.1138245+08:00",
      "checkoutdate": "2024-12-23T20:07:58.1138245+08:00",
      "rooms": [
        {
          "adult": 1,
          "child": 2
        },
        {
          "adult": 1,
          "child": 2
        }
      ]
    }
  ]
}

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 'TC_HotelCacheRuleRQContract'.

Response Information

Resource Description

酒店搜索缓存规则添加

ReturnResult
NameDescriptionTypeAdditional information
code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2"
}