def create_success_response(return_data):
    """ Creates a standard success response used by all REST apis.
    """
    count = 1
    if isinstance(return_data, list):
        count = len(return_data)

    return {
        'meta': {
            'error': False,
            'count': count
        },
        'data': return_data
    }