Herramientas de usuario

Herramientas del sitio


public:staticinfo

¡Esta es una revisión vieja del documento!


Información de tours

Consulta la información sobre una ruta.

Verbo HTTP: GET
Recurso:    /tour
Método:     /info

—————————————————————————————————————————————————

Parámetros obligatorios:
  * tourID: Identificador del tour
Parámetros opcionales:
  * explicitDate: Fecha específica de salida del tour -> yyyy-MM-dd
  * dateFrom: Fecha "desde" para la búsqueda de salidas de tours -> yyyy-MM-dd
  * dateTo: Fecha "hasta" para la búsqueda de salidas de tours -> yyyy-MM-dd
  * output: Formato de salida de la consulta (XML o JSON)

—————————————————————————————————————————————————

Esquema de la respuesta

  • TourList → Root
    • Tours → Contenedor
      • Tour → Elemento
        • Id → Identificador del tour
        • Name → Nombre del tour
        • Image → URL a la imagen del tour
        • URLURL a la descripción del tour

—————————————————————————————————————————————————

Respuestas de ejemplo

Example.xml
<Tour Id="1" Name="Esencia Europea 2017" URL="" Image="">
  <Periods>
    <Period DayFrom="2017-01-14T00:00:00" DayTo="2018-01-14T00:00:00" />
  </Periods>
  <Departures>
    <Departure Code="MEG-2063" AmericaDeparture="2017-01-13T00:00:00" MaxQuota="25">
      <Itinerary>
        <ItineraryDay Order="0" Route="MAD-LOU" Image="" Type="1">
          <Description />
          <Hotel Name="Hotelito" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>
        <ItineraryDay Order="1" Route="LOU-ORL" Image="" Type="1">
          <Description />
          <Hotel Name="Hotelito" Category="5" URL="" Image="" />
          <Quota TotalQuota="25" FreeQuota="25" />
        </ItineraryDay>        
      </Itinerary>
      <Prices Category="Turista" PVP_DBL="100" PVP_SGL="80" PVP_TPL="120" PVP_CHD="50" PVP_IND="0" Net_DBL="0" Net_SGL="0" Net_TPL="0" Net_CHD="0" Net_IND="0" CommissionIncluded="true" CommissionPercent="5" />
      <Buses>
        <Bus Id="1" DriverName="" GuideName="" Telephone1="" Telephone2="" DateFrom="2017-01-16T00:00:00" DateTo="2017-01-28T00:00:00" Order="0" />
      </Buses>
      <Inclusions />
      <Exclusions />
      <Observations />
      <ExtraInfos />
    </Departure>
  </Departures>
</Tour>

Example.json
{
  "Id": 1,
  "Name": "Esencia Europea 2017",
  "Periods": [
    {
      "DayFrom": "2017-01-14T00:00:00",
      "DayTo": "2018-01-14T00:00:00"
    }
  ],
  "URL": "",
  "Image": "",
  "Departures": [
    {
      "Code": "MEG-2063",
      "AmericaDeparture": "2017-01-13T00:00:00",
      "MaxQuota": 25,
      "Itinerary": [
        {
          "Order": 0,
          "Route": "MAD-LOU",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotelito",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 1
        },
        {
          "Order": 1,
          "Route": "LOU-ORL",
          "Description": "",
          "Image": "",
          "Hotel": {
            "Name": "Hotelito",
            "Category": 5,
            "URL": "",
            "Image": ""
          },
          "Quota": {
            "TotalQuota": 25,
            "FreeQuota": 25
          },
          "Type": 1
        }        
      ],
      "Prices": [
        {
          "Category": 0,
          "PVP_DBL": 100,
          "PVP_SGL": 80,
          "PVP_TPL": 120,
          "PVP_CHD": 50,
          "PVP_IND": 0,
          "Net_DBL": 0,
          "Net_SGL": 0,
          "Net_TPL": 0,
          "Net_CHD": 0,
          "Net_IND": 0,
          "CommissionIncluded": true,
          "CommissionPercent": 5
        }
      ],
      "Buses": [
        {
          "Id": 1,
          "DriverName": "",
          "GuideName": "",
          "Telephone1": "",
          "Telephone2": "",
          "DateFrom": "2017-01-16T00:00:00",
          "DateTo": "2017-01-28T00:00:00",
          "Order": 0
        }
      ],
      "Inclusions": [],
      "Exclusions": [],
      "Observations": [],
      "ExtraInfos": []
    }
  ]
}
public/staticinfo.1478724860.txt.gz · Última modificación: 2017/01/20 13:17 (editor externo)