python-restx / flask-restx

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
https://flask-restx.readthedocs.io/en/latest/
Other
2.16k stars 335 forks source link

Query parameters Swagger witht marshmallow/webargs #508

Open quantumcode-martin opened 1 year ago

quantumcode-martin commented 1 year ago

Hello, I would like to do something pretty simple: Add query parameters to a route and do a request parsing while also getting my documentation updated with those parameters.

For example: http://127.0.0.1:5000/todos?sort=name

I want to have a field sort in my documentation with a description and possible values. And I also want to parse the request so I can handle every case.

Can you please help me with an example, I was not able to find one in the documentation ? Thank you.