guashtiSingh / EatOutEatSafeSoftwareProject

Software Development Project #2 - Group 5
1 stars 1 forks source link

Rest API for restaurants list #6

Closed iloy1004 closed 7 years ago

iloy1004 commented 8 years ago

I've finished rest APIs for restaurants list - categorized by popular, location, allergy and search list. Below addresses are the link you can call from android.

  1. Default: http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com:8080/EOES-webService/restaurant This will be show list of all restaurants in the database
  2. Popular: http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com:8080/EOES-webService/restaurant/list/P This will be show list of popular restaurants only higher rate of 6 restaurants
  3. Location: http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com:8080/EOES-webService/restaurant/list/L This will be show list of all restaurants group by locations
  4. Allergy: http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com:8080/EOES-webService/restaurant/list/A This will be show list of all restaurants group by allergies
  5. Search list: ./restaurant/list/{Keyword whatever user input} http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com:8080/EOES-webService/restaurant/list/M/pizza This will be show the result of searching by keyword

Please feel free to let me know if you want to change anything. Then, I'll fix and upload code on repo and our server.

iloy1004 commented 8 years ago

@AnjithBabu @chemceem Could you give us JSON format example for restaurant's detail page and others if you have some necessary format?

AnjithBabu commented 8 years ago

@iloy1004 this is good. One question , what type of request is webservice call GET or POST?

Never mind. Found it. GET

AnjithBabu commented 8 years ago

@roycol @iloy1004 Could you add two more fields in the JSON data.

{ "_id": "test", "name": "test", "image_url": "test", "description": "test description 1", "rating": 3, "reviews": 33 "allergy_type": "Milk" // show the type of allergy relates to "location" : "Toronto" //location where the restaurant is }

This is required group when showing restaurants based on Allergy and Location

iloy1004 commented 8 years ago

@AnjithBabu do you want that allergy name and location are showed all type of list? popular, allergy and location lists?

AnjithBabu commented 8 years ago

@iloy1004 yes please

AnjithBabu commented 8 years ago

@roycol @iloy1004 we need one more webservice in listing section One which returns a particular restaurant details, based on rest Id. It should also return the customer reviews regarding that particular restaurant.

Following details are required

  1. Series of res images (like in the website).
  2. Comments regarding that restaurant. (Rest of the details we can take from the list like description, name etc.)

This is required to show details when user clicks on a particular restaurant.

roycol commented 8 years ago

The web services for a restaurant's details are ready to use. it will return a restaurant's all the details and images in JSON Array. (please refer to a sample below)