Closed maciusmajor closed 2 months ago
We already have an endpoint to see restaurant details (restaurants/{restaurant_id}) that looks like this:
You can modify json file it returns by going into models ->Restaurants -> to_json, or edit GET option from resources/restaurant.py. Try to add ratings or other new features into this to_json function.
We already have an endpoint to see restaurant details (restaurants/{restaurant_id}) that looks like this:
You can modify json file it returns by going into models ->Restaurants -> to_json, or edit GET option from resources/restaurant.py. Try to add ratings or other new features into this to_json function.
Please don't use photos in cases like this one. Just paste code directly. It will help with readability and maybe later on with debugging or checking differences
I also don't like the idea that we split files so much. Like what is the reason to create a new file for restaurant_info
when it can be stored in for ex. restaurant.py
with other utilities like, delete update etc.
Version Without dish_Additives