Closed JanKaczmarski closed 3 months ago
Also to solve this issue totally you have to make this changes in tests also. So go to tests
and change restaurant_id -> restaurant_name
and user_id -> user_name
When it is necessary. What i mean by that don't change this when it is not needed. Look at documentation if you re not sure where u need to change sth. This is the link to the swagger editor
In our current solution there is in
app.py
on line 84 -> 93 this functionuser_id
as a function parameter we want to search user byuser_name
. It is more readable and less complex bcs there can't be 2 users with the sameuser_name
.user_name
instead ofuser_id
Do the same thing with restaurant route
Instead of
restaurant_id
we want to userestaurant_name
instead