Fixed error in Apex REST example code where auth was passed as a separate parameter.