header
Travel API--Get travel plans

Tag:
Edit edit   Starstar

Program Information

Name: Travel API--Get travel plans
Domain: web service and application
Functionality: This API manages a set of travel plans. The "get travel plans" service returns a collection of travel plans according to different criteria.
Input: idViaje: Unique identifier of the travel plan (Integer). skyscannerMap: A collection of skyscanner flight options. (Object). Each skyscanner flight option comprises of: idSkyscanner: Unique identifier in Skyscanner. (Integer) diaSalida: Day of flight. (String) horaSalida: Hour of flight. (String) duracion: Duration of the flight. (Double) precio: Price. (Double) codigoAeropuertoSalida: Departure airport code. (String) origen: Departure city. (String) codigoAeropuertoLlegada: Arrival airport code. (String) destino: Destination. (String) compañia: Flight company. (String) blablacarMap: A collection of blablacar travel options. (Object). Each blablacar travel option comprises of: idBlablacar: Unique identifier of the travel in blablacar. (Integer) modelo: Model of the car. (String) marca: Brand of the car. (String) precio: Cost. (Double) comodidad: Description of the comfort equipment. (String) fechaHoraSalida: Departure hour. (String) fechaHoraLlegada: Arrival hour. (String) asientosLibres: Available seats. (String) enlace: Link to the travel. (String) airbnbMap: A collection of airbnb booking options. (Object). Each aribnb booking option comprises of: idAirbnb: Unique identifier in airbnb. (Integer) nombre: Name of the flat or house. nHabitacion: Number of rooms available. (Integer) nBaños: Number of bathrooms available. (Integer) ciudad: City. (String) vecindario: District/Zone (String) capacidad: Capacity of the flat or house. (Integer) nombrePropietario: Name of the host. (String) imagen: Image of the flat or house. (String) direccion: Address. (String) rating: Rating in aribnb. (Integer) precio: Cost (Double)
Output: idViaje: Unique identifier of the travel plan (Integer). skyscannerMap: A collection of skyscanner flight options. (Object). Each skyscanner flight option comprises of: idSkyscanner: Unique identifier in Skyscanner. (Integer) diaSalida: Day of flight. (String) horaSalida: Hour of flight. (String) duracion: Duration of the flight. (Double) precio: Price. (Double) codigoAeropuertoSalida: Departure airport code. (String) origen: Departure city. (String) codigoAeropuertoLlegada: Arrival airport code. (String) destino: Destination. (String) compañia: Flight company. (String) blablacarMap: A collection of blablacar travel options. (Object). Each blablacar travel option comprises of: idBlablacar: Unique identifier of the travel in blablacar. (Integer) modelo: Model of the car. (String) marca: Brand of the car. (String) precio: Cost. (Double) comodidad: Description of the comfort equipment. (String) fechaHoraSalida: Departure hour. (String) fechaHoraLlegada: Arrival hour. (String) asientosLibres: Available seats. (String) enlace: Link to the travel. (String) airbnbMap: A collection of airbnb booking options. (Object). Each aribnb booking option comprises of: idAirbnb: Unique identifier in airbnb. (Integer) nombre: Name of the flat or house. nHabitacion: Number of rooms available. (Integer) nBaños: Number of bathrooms available. (Integer) ciudad: City. (String) vecindario: District/Zone (String) capacidad: Capacity of the flat or house. (Integer) nombrePropietario: Name of the host. (String) imagen: Image of the flat or house. (String) direccion: Address. (String) rating: Rating in aribnb. (Integer) precio: Cost (Double)

Reference

 

MR Information

MR1------

Description:
Property: Get all the travel plans. Get all the travel plans using a sequence of invocations getting pages of size n. The union of the outputs of all the pages should be equivalent to the output of the first invocation.
Source input: criterion: get all the travel plans
Source output: travel plans $t_{s}$
Follow-up input: criterion: get all the travel plans using a sequence of invocations getting pages of size $n$
Follow-up output: travel plans $t_{f}$
Input relation: criterion: get all the travel plans criterion: get all the travel plans using a sequence of invocations getting pages of size $n$     
Output relation: The union of the outputs of all the pages should be equivalent to the output of the first invocation
Pattern: MROP:equivalent, MRP:symmetry, MRIP:

MR2------

Description:
Property: Get all the travel plans. Get all the travel plans in ascending order of price. The output of the second invocation should be equivalent to the output of the first invocation.
Source input: criterion: get all the travel plans
Source output: travel plans $t_{s}$
Follow-up input: criterion: get all the travel plans in ascending order of price
Follow-up output: travel plans $t_{f}$
Input relation: criterion: get all the travel plans criterion: get all the travel plans in ascending order of price     
Output relation: The output of the second invocation should be equivalent to the output of the first invocation.
Pattern: MROP:equivalent, MRP:symmetry, add noise, MRIP:perturbation

MR3------

Description:
Property: Get all the travel plans in ascending order of price. Get all the travel plans in descending order of price. The output of the second invocation should be equal to the reverse of the output of the first invocation.
Source input: criterion: get all the travel plans in ascending order of price.
Source output: travel plans $t_{s}$
Follow-up input: Get all the travel plans in descending order of price.
Follow-up output: travel plans $t_{f}$
Input relation: criterion: get all the travel plans in ascending order of price. criterion: get all the travel plans in descending order of price.     
Output relation: The output of the second invocation should be equal to the reverse of the output of the first invocation.
Pattern: MROP:equality, MRP:symmetry, MRIP:change direccion

MR4------

Description:
Property: Get all the travel plans, this invocation returns m travel plans. Get up to n travel plans, where m>n. We get the travel plans from n+1 to m. The union of the outputs of the second and third invocation should be equal to the output of the first invocation. For example, the first invocaiton is "to get all travel plans", and it returns 11 results. Then, the second invocaiton is "to get up to 10 travel plans", the third invocation is "to get 10-11 travel plans". The union of the outputs of the second and third invocation should be equal to the output of the first invocation.
Source input: criterion: get all the travel plans
Source output: return $m$ travel plans $t_{s}$
Follow-up input: criterion: get up to $n$ travel plans, where $m>n$
Follow-up output: return travel plans from $n+1$ to $m$ and travel plans 1 to $n$
Input relation: criterion: get all the travel plans criterion: get up to $n$ travel plans, where $m>n$     
Output relation: The union of the outputs of the second and third invocation should be equal to the output of the first invocation.
Pattern: MROP:complete, MRP:symmetry, MRIP:

MR5------

Description:
Property: Get all the travel plans, this invocation returns m travel plans. Get up to n travel plans, where m>n. The outuput of the second invocation is a subset of the output of the first invocation. For example, the first invocaiton is "to get all travel plans", and it returns 11 results. Then, the second invocaiton is "to get up to 10 travel plans". The result of the second invocaiton should be a subset of the first invocaiton.
Source input: criterion: get all the travel plans
Source output: return $m$ travel plans $t_{s}$
Follow-up input: criterion: get up to $n$ travel plans, where $m>n$
Follow-up output: return travel plans 1 to $n$
Input relation: criterion: get all the travel plans criterion: get up to $n$ travel plans, where $m>n$     
Output relation: The outuput of the second invocation is a subset of the output of the first invocation.
Pattern: MROP:subset, MRP:symmetry
Insert title here