Skip to content
Fleur Dragan edited this page Sep 1, 2014 · 1 revision

Server API

Dishes

GET /api/dish/:id

Gets the data for the dish specified by id. Return a JSON object in the following format.

{
"id": "1",      
"name": "Chicken Vindaloo,       
"rating": 3,     
"restaurant_id": "1",     
<other ratings to be determined>     
} 
   

GET /api/dishes

Gets the data for dishes based on search criteria entered. Search criteria are sent as a query string. Returns an array of the same JSON objects the GET /api/dish returns.

Search Criteria

The following search criteria are available:

id
name
rating
resturant_id

Clone this wiki locally