Thanks dhruv, That is for validating the form. I don't have forms in my app, i just want to validate the data in the REST API request.
I think, good choice is http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser On Mon, Jun 22, 2015 at 7:59 PM, Dhruv Baldawa <dhruvbald...@gmail.com> wrote: > You can either add those yourself, or use something like Flask-WTF[1] or > validictory[2] based on your requirements. > > > [1]: https://flask-wtf.readthedocs.org/en/latest/ > [2]: https://readthedocs.org/projects/validictory/ > > On Mon, Jun 22, 2015 at 6:57 PM, anu sree <anusree....@gmail.com> wrote: > > > Thanks anuvrat and krace, > > > > How do we do validation of data in the POST and PUT API request, if we > use > > only native fask ?. > > > > I have seen a way in flask-restful, but I am planing to use only native > > fask. > > > > > http://flask-restful.readthedocs.org/en/latest/api.html#reqparse.RequestParser > > > > Thanks, > > > > > > > > On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju < > > kracethekingma...@gmail.com> wrote: > > > > > The biggest problem with all rest apis except Django REST framework is > no > > > distinction between serializer and model. Soon that will be problem for > > the > > > kind of tasks you want to do. > > > > > > I don't use any framework to create apis in Flask. > > > > > > I follow different approach, use schematics [1] for serialization, > Flask > > > method view and use model methods/service layer to interact with dbs, > > > queues etc ... > > > > > > You can find the similar example for Django in schematics example > > > directory, it should be easy to implement in Flask too. > > > > > > [1]: http://github.com/schematics/schematics > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers@python.org > > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers@python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Dhruv Baldawa > (http://www.dhruvb.com) > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > https://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers