Restaurants by Cuisine
Example API Request:
URL: https://www.api.123demo.co.in/api/restaurantByCuisine
Method: POST
Request Parameters:
| Object |
Description |
device_token |
[Required] (Get during app installation) |
app_api_key |
[Required] (Get during app installation) |
token |
[Required] Bearer Token (Get during app login) |
cuisine_type_id |
[Required] |
output |
JSON formats. |
Response Body: Suceess
{
"success": true,
"data": [
[
{
"id": 4,
"restaurant": "New heart restaurant",
"restaurant_type_id": "1",
"license_no": null,
"web_url": null,
"features_id": null,
"logo": "1641895761.png",
"business_id": 1,
"business_location_id": 4,
"status": 1,
"created_at": "2022-02-04 11:19:18",
"updated_at": null,
"location_title": "KFC Bristol",
"address": "220 North Street",
"city": "Bedminster, Bristol",
"postcode": "BS3 1JD",
"latitude": "51.441158294677734",
"longitude": "-2.6114978790283203",
"state": "Bristol",
"country": "United Kingdom",
"phone": "09658285888",
"email": "samir@dfsdf.bo"
}
],
[
{
"id": 6,
"restaurant": "Haldiram Saltlake City",
"restaurant_type_id": "5",
"license_no": "dADadAD",
"web_url": null,
"features_id": null,
"logo": "1648625312.png",
"business_id": 15,
"business_location_id": 6,
"status": 1,
"created_at": "2022-03-30 12:54:16",
"updated_at": null,
"location_title": "Haldiram Salt lake",
"address": "220a North Street",
"city": "Bedminster, Bristol",
"postcode": "BS3 1JD",
"latitude": "78.9629",
"longitude": "-20.9629",
"state": "Bedminster",
"country": "United Kingdom",
"phone": "09658285888",
"email": "samir@impactitsolutions.co.uk"
}
]
],
"message": "Get restaurant by cuisine id."
}
Response Body: Failure
{
"success": false,
"message": "Unauthorized",
"data": "Unauthorized"
}