Added REST methods in PersonController.java.