Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #api #parameter
ADD COMMENT
Topic
Name
9+8 =