1. Obtener todos los tours
[GET] api/tours
Link: api/tours
{
"tours" : [
...muchosTours, {
"id" : 1 ,
"title" : " Valle de la luna" ,
"slug" : " valle-de-la-luna" ,
"feature_image_url" : " https://googledrive.com/host/0BwM5_eez3JnoeFlHblRYRS1UX2c/7.jpg" ,
"category" : {
"id" : 1 ,
"name" : " Trekking" ,
"slug" : " trekking"
},
"price" : 250000 ,
"discount" : {
"flag" : true ,
"price" : 200000
},
"details" : {
"destination" : " Luna" ,
"duration" : " 3 horas" ,
"distance_height" : " 500 Km" ,
"itineraries" : [
...muchasActivities, {
"activity" : " Despetarse y subir al bus"
}
]
}
}
]
}
1. Obtener todos los tours destacados
[GET] api/tours?destacados=true
Link: api/tours?destacados=true
{
"tours" : [
...muchosTours, {
"id" : 1 ,
"title" : " Valle de la luna" ,
"slug" : " valle-de-la-luna" ,
"feature_image_url" : " https://googledrive.com/host/0BwM5_eez3JnoeFlHblRYRS1UX2c/7.jpg" ,
"category" : {
"id" : 1 ,
"slug" : " trekking"
},
"price" : 250000 ,
"discount" : {
"flag" : true ,
"price" : 200000
}
}
]
}
[GET] api/tours/:id
Link: api/tours/1
{
"tour" : {
"id" : 1 ,
"title" : " Valle de la luna" ,
"slug" : " valle-de-la-luna" ,
"feature_image_url" : " https://googledrive.com/host/0BwM5_eez3JnoeFlHblRYRS1UX2c/7.jpg" ,
"category" : {
"id" : 1 ,
"name" : " Trekking" ,
"slug" : " trekking"
},
"price" : 250000 ,
"discount" : {
"flag" : true ,
"price" : 200000
},
"details" : {
"destination" : " San Pedro de Atacama" ,
"duration" : " 5 horas" ,
"distance_height" : " 300 Km" ,
"itineraries" : [
...muchasActivities, {
"activity" : " Despetarse y subir al bus"
}
]
},
"recommendations" : " Se recomienda el uso de bloqueador" ,
"additional_service" : " Servicio de comida light y no light" ,
"experiences" : {
"photos" : [
...muchasPhotos, {
"id" : 2 ,
"src" :" http://www.euroresidentes.com/hogar/mascotas/wp-content/uploads/sites/5/2016/01/cachorro.png"
}
],
"videos" : [
...muchosVideos, {
"id" : 5 ,
"src" : " https://www.youtube.com/watch?v=goKeotF-7nA"
}
]
}
}
}
4. Enviar Tours (realizar pedido)
[POST] api/tours
Link: api/tours
{
"paymentType" : 1 ,
"tours" : [
...muchosTours, {
"id" : 1 ,
"passengers" : {
"children" : 5 ,
"adults" : 2
},
"date" : " fechaISO"
}
],
"user" : {
"dniRuc" : " 123123213" ,
"docType" : 1 ,
"firstname" : " Gean Carlos" ,
"lastname" : " Bonifacio Marroquin" ,
"email" : " miemail@genial.com" ,
"phoneNumber" : " 258925" ,
"cellPhoneNumber" : " 987456258" ,
"comment" : " cadena de texto"
},
"creditCard" : {
"number" : " 4929685682067788" ,
"cvv" : " 123" ,
"expiration" : {
"year" : " 2016" ,
"month" : " 12"
}
}
}
{
"success" : true ,
"amount" : 120
}