[BangPypers] UI less Rest API server with flask
kracethekingmaker at gmail.com
Mon Jun 22 19:18:36 CEST 2015
On Jun 22, 2015 19:03, "anu sree" <anusree.a04 at 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 ?.
That is where serialization library like schematics comes to play. Pass the
request data dict to serialization and call validate method.
> I have seen a way in flask-restful, but I am planing to use only native
> On Mon, Jun 22, 2015 at 6:28 PM, kracekumar ramaraju <
> kracethekingmaker at gmail.com> wrote:
> > The biggest problem with all rest apis except Django REST framework is
> > distinction between serializer and model. Soon that will be problem for
> > kind of tasks you want to do.
> > I don't use any framework to create apis in Flask.
> > I follow different approach, use schematics  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.
> > : http://github.com/schematics/schematics
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers at python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> BangPypers mailing list
> BangPypers at python.org
More information about the BangPypers