Closed iloy1004 closed 7 years ago
@AnjithBabu @chemceem Could you give us JSON format example for restaurant's detail page and others if you have some necessary format?
@iloy1004 this is good. One question , what type of request is webservice call GET or POST?
Never mind. Found it. GET
@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
@AnjithBabu do you want that allergy name and location are showed all type of list? popular, allergy and location lists?
@iloy1004 yes please
@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
This is required to show details when user clicks on a particular restaurant.
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)
}
In order to get comments, we have another web service. it's because we separate classes for web services based on C# classes to avoid any confusion. (however, if required, we will consider to combine them into a web service. let's talk about it later.)
as a default, result of above will return top review list only. You can add 1 or 0 at the end of the address to specify a type of the reviews. (1:top reviews only, 0:all reviews)
as Anjith requested, I've created a webservice to include allergy types(AC_Name) and location(LC_Name). You can invoke it with "M" keyword followed by "/list". so it will look like the examples below.
As for the Menu list, please refer to below.
Thanks @roycol , but next time when you guys change the existing JSON attribute that is already published, for example: restaurant list , please let me know.
Because I see there is a change in "MainImg_Path" attribute, earlier it was just "/images", but now it is as below.
"MainImg_Path":"http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com/images/"
This was causing error, because I coded based on the previous one and it took me some time to figure it out. :)
Sorry for the inconvenience, Anjith. I can roll it back if you don't need the full path of the image. please let me know if you want to have previous image path.
I'm closing this issue as we completed both web services for restaurants list and relevant mobile development.
@roycol @iloy1004 , the json of res list got change again.
Image path in latest json got changed .
Old json : [{"Img_Path":"http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com/images/","rowNo":"1","Img_Name":"Almond Butterfly-01.jpg"}
New json i am getting : "MainImg_Path":"\/images",
even the name of variable got changed? Please change the json to agreed format below.
[{"Img_Path":"http://ec2-54-218-26-177.us-west-2.compute.amazonaws.com/images/"
Sorry for the inconvenience. I've modified it to the agreed format. please check it again
Yes, now it is working Roy. Thank you.
"MainImg_Path":"http:\/\/ec2-54-218-26-177.us-west-2.compute.amazonaws.com\/images\/", "MainImg_Name":"almond.jpg",
Closing the issue
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.
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.