Flask-RESTPlus - How to get query arguments? Flask-RESTPlus - How to get query arguments? flask flask

Flask-RESTPlus - How to get query arguments?


It's a Flask plugin, it shouldn't be breaking the Flask interface. So you should be able to get them from flask.request as always:

import flask...print(flask.request.args.get("name"))


I think the most correct solution I found is to use the request parser:

parser = api.parser()parser.add_argument('user', location='args', help='Queried user')

It is discontinued from RESTPlus. But it is not going any time soon as they have mentioned.