'Return `True` if the given endpoint should be included.'

def should_include_endpoint(self, path, callback):

    if (not is_api_view(callback)):
        return False
    if (path.endswith('.{format}') or path.endswith('.{format}/')):
        return False
    return True
