Maybe a method view would be more appropriate:
http://flask.pocoo.org/docs/views/#method-views-for-apis

But it wouldn't show the usual route mapping of a flask app.