Finished java rest basics