List of parameters in flask: reading only first value getlist() List of parameters in flask: reading only first value getlist() flask flask

List of parameters in flask: reading only first value getlist()


The last way should actually work. I just tried it in my Browser.

http://localhost:5000/api?skip_id=ENSG000001000301&skip_id=ENSG00000

Gives me

['ENSG00000100030', 'ENSG00000']

However with curl you will get into trouble with the & character as it will put the task in the background (at least if you're on Linux). With curl you can use

curl -X GET -G http://localhost:5000/api?skip_id -d skip_id=ENSG00000100030 -d skip_id=ENSG00000

to get your described result.