I have defined a custom Response format as per the Flask-RESTful documentation as follow.
app = Flask(__name__) api = restful.Api(app) @api.representation(\'app
Just return Flask response objects in your methods.
A response class allows you to provide custom headers (including the content-type): http://flask.pocoo.org/docs/api/#response-objects