-
Notifications
You must be signed in to change notification settings - Fork 0
API endpoints and outputs
Shubham Dokania edited this page Jun 29, 2015
·
22 revisions
POST /api/travel/cabs
Parameters :
lat: 28.7765
lng: 77.2345
Output :
[
{
"display_name": "uberGO",
"product_id": "c8170d76-b67c-44b1-8c26-5f45541434d2",
"price_per_km": 7,
"min_price": 60,
"provider": "Uber",
"time_of_arrival": 12
},
{
"display_name": "Hatchback",
"product_id": "",
"price_per_km": "16",
"min_price": "50",
"provider": "TaxiForSure",
"time_of_arrival": 2
},
{
"display_name": "Hatchback",
"product_id": "",
"price_per_km": "16",
"min_price": "50",
"provider": "TaxiForSure",
"time_of_arrival": 3
},
{
"display_name": "Sedan",
"product_id": "",
"price_per_km": "16",
"min_price": "50",
"provider": "TaxiForSure",
"time_of_arrival": 4
}
]
POST /api/travel/bus
Parameters:
src: "Delhi"
dest: "Amritsar"
date: "20150625" (YYYYMMDD)
Output :
[
{
'origin': '',
'destination': '',
'seat': '',
'duration': '',
'condition': '',
'fare': '',
'bustype': '',
'travelagency': '',
'arrdate': '',
'depdate': ''
},
]
POST /geo
Parameters:
location = "Rohini, Delhi"
output=:
[
{
"country": "India",
"city": "Rohini Sector 28, New Delhi",
"area": "Delhi",
"PLZ": "110042",
"street": "",
"house_no": "",
"POI": "",
"type": "15",
"phone": "",
"lng": 77.10420727729797,
"lat": 28.7578307662807,
"formatted_address": "Rohini Sector 28, New Delhi, Delhi 110042, India"
},
]
POST /api/travel/flight
Parameters:
src = "DEL" (IATA code)
dest = "BOM" (IATA code)
date = "20150621" (YYYYMMDD)
adults = "69"
output=:
[
{
"origin": "DEL",
"fare": 5996,
"flightnum": "153",
"warnings": "Refundable",
"destination": "BOM",
"duration": "2h 5m",
"airline": "spicejet",
"seatingclass": "E",
"depdate": "2015-06-23t0840",
"arrdate": "2015-06-23t1045"
},
]
-Restaurants
POST /api/food/restaurants
POST /api/food/cafe
POST /api/food/bar
Parameters :
lat: 28.7765
lng: 73.4325
Output :
[
{
"distance": 921,
"name": "The Oberoi, Gurgaon",
"lng": 77.088276,
"address": "No.443, Udyog Vihar, Phase 5, Beside Trident Hotel, Gurgaon",
"lat": 28.502015,
"type": [
"night_club",
"bar",
"restaurant",
"lodging",
"food",
"spa",
"health",
"establishment"
],
"id": "ChIJVVVVFUIZDTkRZHBDeKJ5H_8"
},
{
"distance": 362,
"name": "Route04",
"lng": 77.092223,
"address": "Ground Floor, Tower E, DLF Cybergreens, Gurgaon",
"lat": 28.493512,
"type": [
"restaurant",
"food",
"establishment"
],
"id": "ChIJ2WlhdDcZDTkRkjkETFqaXjU"
},
]
GET /api/shop/offers
Parameters :
None
Output :
[
{
"title": "Min. 50% Off",
"description": "Men's Footwear",
"url": "http://dl.flipkart.com/dl/promotion/pr?offer=s:88cjeouxt4pkgh44:c:058247b627.&sid=osp,cil&affid=shubhamgr1",
"imageUrls": [
{
"url": "http://img5a.flixcart.com/image/shoe/w/3/c/brown-new-209-bacca-bucci-40-original-imaeyfr5ysfce9qa.jpeg"
}
],
"availability": "In-stock"
}
]
GET /api/shop/search
Parameters :
q: search query <Type:String>
Output :
[
{
"productBaseInfo": {
"productIdentifier": {
"productId": "COME4S4UBXHCRD7J",
"categoryPaths": {
"categoryPath": [
[
{
"title": "laptops"
}
]
]
}
},
"productAttributes": {
"title": "Lenovo G50-70 Notebook (4th Gen Ci3/ 4GB/ 1TB/ Free DOS) (59-442243)",
"productDescription": null,
"imageUrls": {
"400x400": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-400x400-imae4u4afqmwzd5g.jpeg",
"75x75": "http://img5a.flixcart.com/image/computer/d/7/j/lenovo-notebook-75x75-imae4u4afqmwzd5g.jpeg",
"275x275": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-275x275-imae4u4afqmwzd5g.jpeg",
"125x125": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-125x125-imae4u4afqmwzd5g.jpeg",
"40x40": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-40x40-imae4u4afqmwzd5g.jpeg",
"1100x1100": "http://img5a.flixcart.com/image/computer/d/7/j/lenovo-notebook-1100x1100-imae4u4afqmwzd5g.jpeg",
"100x100": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-100x100-imae4u4afqmwzd5g.jpeg",
"200x200": "http://img6a.flixcart.com/image/computer/d/7/j/lenovo-notebook-200x200-imae4u4afqmwzd5g.jpeg",
"unknown": "http://img5a.flixcart.com/image/computer/d/7/j/lenovo-notebook-original-imae4u4afqmwzd5g.jpeg"
},
"maximumRetailPrice": {
"amount": 31090,
"currency": "INR"
},
"sellingPrice": {
"amount": 25990,
"currency": "INR"
},
"productUrl": "http://dl.flipkart.com/dl/lenovo-g50-70-notebook-4th-gen-ci3-4gb-1tb-free-dos-59-442243/p/itme4s4vwrykd3gg?pid=COME4S4UBXHCRD7J&affid=shubhamgr1",
"productBrand": "Lenovo",
"inStock": true,
"codAvailable": true,
"emiAvailable": null,
"discountPercentage": 16,
"cashBack": null,
"offers": [],
"size": null,
"color": "Black",
"sizeUnit": "",
"sizeVariants": "[]",
"colorVariants": null,
"styleCode": null
}
},
"productShippingBaseInfo": {
"shippingOptions": null
},
"offset": null
}
]