@@ -137,7 +137,7 @@ async def get_sub_sources_geometries(
137
137
engine = get_engine ()
138
138
async with engine .begin () as conn :
139
139
140
- for geometry in ["polygons" , "linestrings " , "points" ]:
140
+ for geometry in ["polygons" , "lines " , "points" ]:
141
141
142
142
try :
143
143
table = await get_table (conn , table_id , geometry )
@@ -153,7 +153,7 @@ async def get_sub_sources_helper(
153
153
response : Response ,
154
154
request : starlette .requests .Request ,
155
155
table_id : int ,
156
- geometry_type : Literal ["polygons" , "linestrings " , "points" ],
156
+ geometry_type : Literal ["polygons" , "lines " , "points" ],
157
157
page : int = 0 ,
158
158
page_size : int = 100
159
159
) -> List [Union [PolygonResponseModel , LineStringModel , PointModel ]]:
@@ -210,22 +210,22 @@ async def get_sub_sources(
210
210
return await get_sub_sources_helper (response , request , table_id , "points" , page , page_size )
211
211
212
212
213
- @router .get ("/{table_id}/linestrings " , response_model = List [LineStringModel ])
213
+ @router .get ("/{table_id}/lines " , response_model = List [LineStringModel ])
214
214
async def get_sub_sources (
215
215
response : Response ,
216
216
request : starlette .requests .Request ,
217
217
table_id : int ,
218
218
page : int = 0 ,
219
219
page_size : int = 100
220
220
):
221
- return await get_sub_sources_helper (response , request , table_id , "linestrings " , page , page_size )
221
+ return await get_sub_sources_helper (response , request , table_id , "lines " , page , page_size )
222
222
223
223
224
224
@router .patch ("/{table_id}/{geometry_type}" )
225
225
async def patch_sub_sources (
226
226
request : starlette .requests .Request ,
227
227
table_id : int ,
228
- geometry_type : Literal ["polygons" , "linestrings " , "points" ],
228
+ geometry_type : Literal ["polygons" , "lines " , "points" ],
229
229
updates : Union [PolygonRequestModel , LineStringModel , PointModel ],
230
230
user_has_access : bool = Depends (has_access )
231
231
) -> List [Union [PolygonResponseModel , LineStringModel , PointModel ]]:
@@ -259,7 +259,7 @@ async def patch_sub_sources(
259
259
request : starlette .requests .Request ,
260
260
target_column : str ,
261
261
table_id : int ,
262
- geometry_type : Literal ["polygons" , "linestrings " , "points" ],
262
+ geometry_type : Literal ["polygons" , "lines " , "points" ],
263
263
copy_column : CopyColumnRequest ,
264
264
user_has_access : bool = Depends (has_access ),
265
265
):
0 commit comments