Single Mode & Multi Mode

Search Multi Mode is one of the main features of Hotel-X, even if you can use Search Multi Mode in Hotel-X

Search Single Mode

This mode is used when the client only wants to get options from a single access, for this, the client must indicate in the request the code of the access that they want to use. In the request have to use the access filter, you can find a sample here:

{

  "filter": {

    "access": {

      "includes": ["yourAccess"]

    }

  }

}

Search Multi Mode

If you don’t have any filter in the request and you have permissions for multimode, the search is multimode. By default, the request is for all the accesses that you have configured in the product, if you want to apply some filter, you have to use the filter and to indicate the rules that you want. Is important to know that you only can use includes or excludes in the same request, but never both in the same request.

Includes Sample

{

  "filter": {

    "access": {

      "includes": ["yourAccess","yourAccess2"]

    }

  }

}

Excludes Sample

{

  "filter": {

    "access": {

      "excludes": ["yourAccess"]

    }

  }

}

Comments