human
Complete this python program:
def info_parameter():
assistant
#Here is the Python code you requested.

    """RESTful CRUD controller
    should only be accessed from mobile client
    """
    def prep(r):
        if (r.representation == 'json'):
            list_fields = ['id', 'alert_id', 'info_id', 'name', 'value', 'mobile']
            s3db.configure('cap_info_parameter', list_fields=list_fields)
        else:
            return
        return True
    s3.prep = prep
    return s3_rest_controller()