Add example of rest hook usage