def jsonapi(f):
    @wraps(f)
    def wrapper(*args, **kwargs):
        rv = f(*args, **kwargs)
        return make_json_response(rv)
    return wrapper
Declare the view as a JSON API method
dataset/ETHPy150Open kolypto/py-flask-jsontools/flask_jsontools/decorators.py/jsonapi