flask GET request argum,ents code example
Example 1: flask api with parameter
args = request.args
print (args) # For debugging
no1 = args['key1']
no2 = args['key2']
return jsonify(dict(data=[no1, no2])) # or whatever is required
Example 2: flask get with parameters
@app.route('/<name>')
def my_view_func(name):
return name