building REST API in FLASK -
a basic question. have flask app has postgresql behind it. there no orm application. requests done via sql psycopg2 interface.
now want expose api's application. best way proceed.
1> like: http://flask-peewee.readthedocs.org/en/latest/rest-api.html 2> or can 1 without orm. seems orm restful api useful in case have have separate database elements , copy data postgres model orm.
any suggestion welcome.
i have similar setup flask + postgres , psycopg2. followed following tutorials design , implement api handle errors manually , respond appropriate http code
http://blog.luisrei.com/articles/rest.html { design api}
http://blog.luisrei.com/articles/flaskrest.html { implement api}
Comments
Post a Comment