When we return restaurants to the user we want to allow him to select a specific one and get more info about it. So create a route: /rest/details/{rest_id} (or sth like that, the naming convention of the route should be the same as other routes in our REST API standard). We should display all user-relevant data from the database (menu, address, opinions etc.) in this API request.
When we return restaurants to the user we want to allow him to select a specific one and get more info about it. So create a route:
/rest/details/{rest_id}
(or sth like that, the naming convention of the route should be the same as other routes in our REST API standard). We should display all user-relevant data from the database (menu, address, opinions etc.) in this API request.