I would like to pass a list as parameter to flask via getlist(). Reading here: REST API Best practice: How to accept list of parameter values as input
Could you help figuring out why this simple code failed to read a list parameter (skip_id) ?
def api_insight(path):
import pdb
skip_id = request.args.getlist('skip_id', type=None)
print( 'skip_id', skip_id)
pdb.set_trace()
curl http://myexample.com/<mypath>/?&skip_id=ENSG00000100030,ENSG00000112062
# empty list
curl http://myexample.com/<mypath>/?&skip_id=[ENSG00000100030,ENSG00000112062]
# empty list
curl http://myexample.com/<mypath>/?&skip_id=ENSG00000100030&skip_id=ENSG00000
# only first value is read in list