title: building REST API in FLASK
body: <p>A very basic question. I have a FLASK app which has postgresql behind it. There are no ORM for this application. All requests are done via SQL psycopg2 interface.</p>
  
  <p>Now I want to expose certain API's from this application. What would be the best way to proceed.</p>
  
  <p>1> Just like: <a href="http://flask-peewee.readthedocs.org/en/latest/rest-api.html">http://flask-peewee.readthedocs.org/en/latest/rest-api.html</a>
  2> or can I do one without the ORM. It seems that ORM for an RESTful API is very useful but in this case I have to have a separate database elements and copy data from the postgres model to the ORM.</p>
  
  <p>any suggestion would be welcome.</p>