@@ -201,11 +201,12 @@ def annotations_bp_fetchFeatureTypes():
201
201
202
202
203
203
# FETCH ALL KEYS IN ATTRIBUTE SECTION
204
- @annotations_bp .route ("/fetchFeatureAttributeKeys" , methods = ["GET " ])
204
+ @annotations_bp .route ("/fetchFeatureAttributeKeys" , methods = ["Post " ])
205
205
def annotations_bp_fetchFeatureAttributeKeys ():
206
- if request .method == "GET" :
207
- userID = request .args .get ("userID" , None )
208
- token = request .args .get ("token" , None )
206
+ if request .method == "POST" :
207
+ req = request .get_json (force = True )
208
+ userID = req .get ("userID" , None )
209
+ token = req .get ("token" , None )
209
210
210
211
# token still active
211
212
valid_token , error = validateActiveToken (userID , token )
@@ -214,7 +215,11 @@ def annotations_bp_fetchFeatureAttributeKeys():
214
215
response .headers .add ("Access-Control-Allow-Origin" , "*" )
215
216
return response
216
217
217
- data , notification = fetchFeatureAttributeKeys ()
218
+ taxonIDs = req .get ("taxonIDs" , None )
219
+ assemblyID = req .get ("assemblyID" , None )
220
+ types = req .get ("types" , None )
221
+
222
+ data , notification = fetchFeatureAttributeKeys (assemblyID , taxonIDs , types )
218
223
219
224
response = jsonify ({"payload" : data , "notification" : notification })
220
225
response .headers .add ("Access-Control-Allow-Origin" , "*" )
0 commit comments