@@ -326,7 +326,7 @@ def vertex_attribute_names():
326326 flask .request .json ["input_geode_object" ], file_absolute_path
327327 )
328328 vertex_attribute_names = data .vertex_attribute_manager ().attribute_names ()
329- print ( f"vertex_attribute_names: { vertex_attribute_names } " , flush = True )
329+
330330 return flask .make_response (
331331 {
332332 "vertex_attribute_names" : vertex_attribute_names ,
@@ -335,6 +335,37 @@ def vertex_attribute_names():
335335 )
336336
337337
338+ with open (
339+ os .path .join (schemas , "polygon_attribute_names.json" ),
340+ "r" ,
341+ ) as file :
342+ polygon_attribute_names_json = json .load (file )
343+
344+
345+ @routes .route (
346+ polygon_attribute_names_json ["route" ],
347+ methods = polygon_attribute_names_json ["methods" ],
348+ )
349+ def polygon_attribute_names ():
350+
351+ UPLOAD_FOLDER = flask .current_app .config ["UPLOAD_FOLDER" ]
352+ utils_functions .validate_request (flask .request , vertex_attribute_names_json )
353+ file_absolute_path = os .path .join (
354+ UPLOAD_FOLDER , werkzeug .utils .secure_filename (flask .request .json ["filename" ])
355+ )
356+ data = geode_functions .load (
357+ flask .request .json ["input_geode_object" ], file_absolute_path
358+ )
359+ polygon_attribute_names = data .polygon_attribute_manager ().attribute_names ()
360+
361+ return flask .make_response (
362+ {
363+ "polygon_attribute_names" : polygon_attribute_names ,
364+ },
365+ 200 ,
366+ )
367+
368+
338369with open (
339370 os .path .join (schemas , "ping.json" ),
340371 "r" ,
0 commit comments