Basic REST actions coded, refactor needed