developing a web application using flask framework exposing REST api