I want to create a resource that supports GET request in following way:
/bar?key1=val1&key2=val2
I tried this code, but it is not worki
Flask can parse arguments through request
from flask import request
You can use following lines in the block that requires GET parameters. GET is declared in @app.route() declaration.
args = request.args
print (args) # For debugging
no1 = args['key1']
no2 = args['key2']
return jsonify(dict(data=[no1, no2])) # or whatever is required