An example of rest automation