Basic Flask-based restful api handler.