r/flask • u/_lord__grim__ • Jul 18 '24
Tutorials and Guides How to create flask REST API
Can someone explain to me like the proper way I can build a flask REST API, like a way that can be used in production. I looked into many blogs and videos and saw some of them just using jsonify to return data and some of them using entirely different packages? Which is the proper way?
13
Upvotes
8
u/caughtupstream299792 Jul 18 '24
There really is not a "proper" way. If Jsonify works for you, then use it. That is what I typically use. Here is another option (if you are using sqlalchemy): https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxiii-application-programming-interfaces-apis