77import flask
88import opengeode
99import werkzeug
10- from typing import Any , Dict
1110
1211# Local application imports
1312from .. import geode_functions , utils_functions
@@ -291,8 +290,8 @@ def create_point():
291290)
292291def texture_coordinates ():
293292 utils_functions .validate_request (flask .request , texture_coordinates_json )
294- data = geode_functions .load_data (flask .request .json [ "id" ] )
295- texture_coordinates_json : Dict [ str , Any ] = json . load ( file )
293+ data = geode_functions .load_data (flask .request .json . get ( "id" ) )
294+ texture_coordinates = data . texture_manager (). texture_names ( )
296295 return flask .make_response ({"texture_coordinates" : texture_coordinates }, 200 )
297296
298297
@@ -309,8 +308,8 @@ def texture_coordinates():
309308)
310309def vertex_attribute_names ():
311310 utils_functions .validate_request (flask .request , vertex_attribute_names_json )
312- data = geode_functions .load_data (flask .request .json [ "id" ] )
313- vertex_attribute_names_json : Dict [ str , Any ] = json . load ( file )
311+ data = geode_functions .load_data (flask .request .json ( "id" ) )
312+ vertex_attribute_names = data . vertex_attribute_manager (). attribute_names ( )
314313 return flask .make_response (
315314 {
316315 "vertex_attribute_names" : vertex_attribute_names ,
@@ -332,8 +331,8 @@ def vertex_attribute_names():
332331)
333332def polygon_attribute_names ():
334333 utils_functions .validate_request (flask .request , polygon_attribute_names_json )
335- data = geode_functions .load_data (flask .request .json [ "id" ] )
336- polygon_attribute_names_json : Dict [ str , Any ] = json . load ( file )
334+ data = geode_functions .load_data (flask .request .json ( "id" ) )
335+ polygon_attribute_names = data . polygon_attribute_manager (). attribute_names ( )
337336 return flask .make_response (
338337 {
339338 "polygon_attribute_names" : polygon_attribute_names ,
@@ -355,8 +354,8 @@ def polygon_attribute_names():
355354)
356355def polyhedron_attribute_names ():
357356 utils_functions .validate_request (flask .request , polyhedron_attribute_names_json )
358- data = geode_functions .load_data (flask .request .json [ "id" ] )
359- polyhedron_attribute_names_json : Dict [ str , Any ] = json . load ( file )
357+ data = geode_functions .load_data (flask .request .json ( "id" ) )
358+ polyhedron_attribute_names = data . polyhedron_attribute_manager (). attribute_names ( )
360359 return flask .make_response (
361360 {
362361 "polyhedron_attribute_names" : polyhedron_attribute_names ,
0 commit comments