8
8
9
9
10
10
@router .get (
11
- "/foodies/ restaurants/" ,
11
+ "/restaurants/" ,
12
12
response_model = list [Restaurant ],
13
- tags = ["foodies" ],
14
13
operation_id = "list_foodies_restaurants" ,
15
14
)
16
15
async def list_foodies_restaurants (
@@ -27,9 +26,8 @@ async def list_foodies_restaurants(
27
26
28
27
29
28
@router .get (
30
- "/foodies/ restaurants/{restaurant_id}" ,
29
+ "/restaurants/{restaurant_id}" ,
31
30
response_model = Restaurant ,
32
- tags = ["foodies" ],
33
31
operation_id = "get_foodies_restaurant" ,
34
32
)
35
33
async def get_foodies_restaurant (restaurant_id : str ) -> Restaurant :
@@ -43,9 +41,8 @@ async def get_foodies_restaurant(restaurant_id: str) -> Restaurant:
43
41
44
42
45
43
@router .post (
46
- "/foodies/ restaurants/" ,
44
+ "/restaurants/" ,
47
45
response_model = Restaurant ,
48
- tags = ["foodies" ],
49
46
operation_id = "create_foodies_restaurant" ,
50
47
)
51
48
async def create_foodies_restaurant (restaurant : Restaurant ) -> Restaurant :
@@ -59,9 +56,8 @@ async def create_foodies_restaurant(restaurant: Restaurant) -> Restaurant:
59
56
60
57
61
58
@router .put (
62
- "/foodies/ restaurants/{restaurant_id}" ,
59
+ "/restaurants/{restaurant_id}" ,
63
60
response_model = Restaurant ,
64
- tags = ["foodies" ],
65
61
operation_id = "update_foodies_restaurant" ,
66
62
)
67
63
async def update_foodies_restaurant (restaurant_id : str , restaurant : Restaurant ) -> Restaurant :
@@ -82,8 +78,7 @@ async def update_foodies_restaurant(restaurant_id: str, restaurant: Restaurant)
82
78
83
79
84
80
@router .delete (
85
- "/foodies/restaurants/{restaurant_id}" ,
86
- tags = ["foodies" ],
81
+ "/restaurants/{restaurant_id}" ,
87
82
operation_id = "delete_foodies_restaurant" ,
88
83
)
89
84
async def delete_foodies_restaurant (restaurant_id : str ) -> dict :
@@ -98,9 +93,8 @@ async def delete_foodies_restaurant(restaurant_id: str) -> dict:
98
93
99
94
100
95
@router .get (
101
- "/foodies/ restaurants/search/" ,
96
+ "/restaurants/search/" ,
102
97
response_model = list [Restaurant ],
103
- tags = ["foodies" ],
104
98
operation_id = "search_foodies_restaurants" ,
105
99
)
106
100
async def search_foodies_restaurants (
@@ -118,9 +112,8 @@ async def search_foodies_restaurants(
118
112
119
113
120
114
@router .get (
121
- "/foodies/ restaurants/near/" ,
115
+ "/restaurants/near/" ,
122
116
response_model = list [Restaurant ],
123
- tags = ["foodies" ],
124
117
operation_id = "find_nearby_restaurants" ,
125
118
)
126
119
async def find_nearby_restaurants (
0 commit comments