Flask Api With Parameter

[Solved] Flask Api With Parameter | Python Frameworks Flask - Code Explorer | www.yomemimo.com
Question : flask api with parameter

Answered by : enchanting-elephant-67u16agz5yas

args = request.args
print (args) # For debugging
no1 = args['key1']
no2 = args['key2']
return jsonify(dict(data=[no1, no2])) # or whatever is required

Source : https://stackoverflow.com/questions/30779584/flask-restful-passing-parameters-to-get-request | Last Update : Sun, 15 Nov 20

Question : flask request parameters

Answered by : ill-ibis-l94ea0pbca0l

path /foo/page.html full_path /foo/page.html?x=y script_root /myapplication base_url http://www.example.com/myapplication/foo/page.html url http://www.example.com/myapplication/foo/page.html?x=y url_root http://www.example.com/myapplication/

Source : https://stackoverflow.com/questions/15974730/how-do-i-get-the-different-parts-of-a-flask-requests-url | Last Update : Sat, 23 Jul 22

Answers related to flask api with parameter

Code Explorer Popular Question For Python Frameworks Flask