Yuri Araújo
Yuri Araújo

Reputation: 1

Flask filter by url

I'm using Flask-Restless and Flask-SQLAlchemy on my application. I can't remember when, but I did a example that I'm almost 100% it was with Flask-Restless to filter a query in the url like /example?id=1. Although the pagination plugin is ok, I can't replicate the filtering by attribute on the url.

I've been searching like crazy on how to do that again but I can't find it. I'd appreciate if someone here has a way of doing that.

PS.: With Flask-Restless, how do I make a GET request on a endpoint passing a parameter like GET /example {"id": 1}?

PS2.: I know that if I put the id after the "/" I'll get the object, but I want to filter any field I want.

Upvotes: 0

Views: 1869

Answers (0)

Related Questions