flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

Query parameters Swagger witht marshmallow/webargs

Open quantumcode-martin opened this issue 2 years ago • 0 comments

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.

quantumcode-martin avatar Jan 10 '23 13:01 quantumcode-martin