JanKaczmarski / heaven-in-mouth

Food-delivery app WIP
MIT License
1 stars 0 forks source link

Add REST API endpoint for restaurant details #82

Closed maciusmajor closed 2 months ago

maciusmajor commented 3 months ago

Version Without dish_Additives

Volqano commented 3 months ago

We already have an endpoint to see restaurant details (restaurants/{restaurant_id}) that looks like this:

449712879_1218598785840358_2439173583373862770_n

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.

JanKaczmarski commented 3 months ago

We already have an endpoint to see restaurant details (restaurants/{restaurant_id}) that looks like this:

449712879_1218598785840358_2439173583373862770_n

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

JanKaczmarski commented 3 months ago

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.