Add rest hook implementation