Rest method completed with passing tests