rest security examples